Skip to content

Commit 15d15d9

Browse files
committed
Merge remote-tracking branch 'refs/remotes/origin/linda-starter-compose-up' into linda-starter-compose-up
2 parents 8acc647 + b16a534 commit 15d15d9

File tree

26 files changed

+87
-42
lines changed

26 files changed

+87
-42
lines changed

samples/angular-express/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ This sample showcases how you could deploy a full-stack application with Angular
3131

3232
For development, we use two local containers, one for the frontend Angular service and one for the backend service in Express. It also uses Caddy as a web server for serving static files. To run the sample locally after cloning the repository, you can run on Docker by doing:
3333

34-
1. `docker compose -f compose.dev.yaml up`
34+
1. `docker compose -f compose.dev.yaml up --build`
3535

3636
---
3737

samples/bullmq-bullboard-redis/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ The `worker` service is the queue processor that will process the jobs added to
2424

2525
## Local Development
2626

27-
1. Run `docker compose -f compose.dev.yaml up`
27+
1. Run `docker compose -f compose.dev.yaml up --build`
2828

2929
---
3030

samples/csharp-dotnet/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ This sample showcases how you could deploy a full-stack application with ASP.NET
3030

3131
For development, we use two local containers, one for the frontend service and one for the backend service in ASP.NET Core. It also uses Caddy as a web server for serving static files. To run the sample locally after cloning the repository, you can run on Docker by doing:
3232

33-
`docker compose -f compose.dev.yaml up`
33+
`docker compose -f compose.dev.yaml up --build`
3434

3535
---
3636

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/elysia/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ A basic [Elysia](https://elysiajs.com/) app running on [Bun](https://bun.sh/) wi
1818

1919
## Local Development
2020

21-
1. Run `docker compose -f compose.dev.yaml up`
21+
1. Run `docker compose -f compose.dev.yaml up --build`
2222

2323
---
2424

samples/fastapi-postgres/README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,13 +17,13 @@ This sample project demonstrates how to deploy FastAPI with PostgreSQL with Defa
1717

1818
## Local Development
1919

20-
1. Run `docker compose -f compose.dev.yaml up`
20+
1. Run `docker compose -f compose.dev.yaml up --build`
2121

2222
---
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
@@ -20,7 +20,7 @@ This sample project demonstrates how to deploy FastAPI with Defang.
2020
To run your FastAPI app locally, you'll need to have Docker installed on your machine. You can then run:
2121

2222
```bash
23-
docker compose -f compose.yaml -f compose.dev.yaml up
23+
docker compose -f compose.yaml -f compose.dev.yaml up --build
2424
```
2525

2626
That will start your FastAPI app on `http://localhost:8000` with hot reloading enabled.

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

0 commit comments

Comments
 (0)