Skip to content

Commit af17f02

Browse files
authored
Merge branch 'main' into linda-vue-baseimage
2 parents d52df26 + 8e8cfa9 commit af17f02

File tree

23 files changed

+86
-43
lines changed

23 files changed

+86
-43
lines changed

samples/django/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ The Dockerfile and compose files are already set up for you and are ready to be
3535

3636
Title: Django
3737

38-
Short Description: A simple Django app that uses SQLite as the database
38+
Short Description: A simple Django app that uses SQLite as the database.
3939

4040
Tags: Django, SQLite, Python
4141

samples/fastapi-postgres/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ This sample project demonstrates how to deploy FastAPI with PostgreSQL with Defa
2323

2424
Title: FastAPI & PostgreSQL
2525

26-
Short Description: A sample project with FastAPI and PostgreSQL
26+
Short Description: A sample project with FastAPI and PostgreSQL.
2727

2828
Tags: FastAPI, PostgreSQL, Python, SQL
2929

samples/fastapi/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ That will start your FastAPI app on `http://localhost:8000` with hot reloading e
2929

3030
Title: FastAPI
3131

32-
Short Description: A sample project demonstrating how to deploy FastAPI with Defang
32+
Short Description: A sample project demonstrating how to deploy FastAPI with Defang.
3333

3434
Tags: FastAPI, OpenAPI, Python
3535

samples/golang-http-form/README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,10 +27,10 @@ This Go application demonstrates a simple form submission using the standard net
2727

2828
---
2929

30-
Title: Go http Form
30+
Title: Go HTTP Form
3131

3232
Short Description: A simple Go application that demonstrates form submission using the net/http library.
3333

34-
Tags: Go, http
34+
Tags: Go, HTTP
3535

3636
Languages: golang

samples/golang-http/README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,10 +6,10 @@ A very simple example of a Go service that listens on a port and returns informa
66

77
---
88

9-
Title: Go http Server
9+
Title: Go HTTP Server
1010

1111
Short Description: A simple Go application that echoes back the request.
1212

13-
Tags: Go, http
13+
Tags: Go, HTTP
1414

1515
Languages: golang

samples/golang-mongodb-atlas/README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,8 +37,8 @@ Environment: Designed to run in containerized environments using Docker, which e
3737

3838
Title: Go & MongoDB Atlas
3939

40-
Short Description: A simple Go application that manages tasks with MongoDB Atlas
40+
Short Description: A simple Go application that manages tasks with MongoDB Atlas.
4141

42-
Tags: Go, MongoDB, Atlas, Task manager
42+
Tags: Go, MongoDB, Atlas, Task Manager
4343

4444
Languages: golang

samples/golang-rest-api/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,6 @@ Title: Go & REST API
1010

1111
Short Description: A simple Go application that fetches fiscal data from an API.
1212

13-
Tags: Go, http, Fiscal data, REST API
13+
Tags: Go, http, Fiscal Data, REST API
1414

1515
Languages: golang

samples/html-css-js/README.md

Lines changed: 23 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# HTML & CSS & JavaScript
22

3-
[1-click deploy](https://portal.defang.dev/redirect?url=https%3A%2F%2Fgithub.com%2Fnew%3Ftemplate_name%3Dsample-html-css-js-template%26template_owner%3DDefangSamples)
3+
[![1-click-deploy](https://defang.io/deploy-with-defang.png)](https://portal.defang.dev/redirect?url=https%3A%2F%2Fgithub.com%2Fnew%3Ftemplate_name%3Dsample-html-css-javascript-template%26template_owner%3DDefangSamples)
44

55
This sample shows how to get a static HTML + CSS + JavaScript website up and running with Defang.
66

@@ -15,15 +15,31 @@ This sample shows how to get a static HTML + CSS + JavaScript website up and run
1515
To run the application locally, you can use the following command:
1616

1717
```bash
18-
docker compose up
18+
docker compose up --build
1919
```
2020

21-
## Deploying
2221

23-
1. Open the terminal and type `defang login`
24-
2. Type `defang compose up` in the CLI.
25-
3. Your app will be running within a few minutes.
22+
## Deployment
2623

24+
> [!NOTE]
25+
> Download [Defang CLI](https://github.com/DefangLabs/defang)
26+
27+
### Defang Playground
28+
29+
Deploy your application to the Defang Playground by opening up your terminal and typing:
30+
```bash
31+
defang compose up
32+
```
33+
34+
### BYOC (AWS)
35+
36+
If you want to deploy to your own cloud account, you can use Defang BYOC:
37+
38+
1. [Authenticate your AWS account](https://docs.aws.amazon.com/cli/latest/userguide/cli-chap-configure.html), and check that you have properly set your environment variables like `AWS_PROFILE`, `AWS_REGION`, `AWS_ACCESS_KEY_ID`, and `AWS_SECRET_ACCESS_KEY`.
39+
2. Run in a terminal that has access to your AWS environment variables:
40+
```bash
41+
defang --provider=aws compose up
42+
```
2743
---
2844

2945
Title: HTML & CSS & JavaScript
@@ -32,4 +48,4 @@ Short Description: A simple HTML + CSS + JavaScript website running on Defang.
3248

3349
Tags: HTML, CSS, JavaScript, Frontend
3450

35-
Languages: HTML, CSS, JavaScript
51+
Languages: nodejs

samples/huginn/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ To start the local environment, run `docker compose -f ./compose.yaml -f ./compo
2727

2828
Title: Huginn
2929

30-
Short Description: A system for building agents that perform automated tasks for you online
30+
Short Description: A system for building agents that perform automated tasks for you online.
3131

3232
Tags: Huginn, Agents, Automation
3333

samples/imgproxy/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
[![1-click-deploy](https://defang.io/deploy-with-defang.png)](https://portal.defang.dev/redirect?url=https%3A%2F%2Fgithub.com%2Fnew%3Ftemplate_name%3Dsample-imgproxy-template%26template_owner%3DDefangSamples)
44

5-
ImgProxy is a fast and secure standalone server for resizing and converting remote images. It's can be deployed using their official Docker image, as documented [here](https://docs.imgproxy.net/installation#docker).
5+
ImgProxy is a fast and secure standalone server for resizing and converting remote images. It can be deployed using the official Docker image, as documented [here](https://docs.imgproxy.net/installation#docker).
66

77
## Prerequisites
88

0 commit comments

Comments
 (0)