You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Defang is a radically simpler way for developers to create, deploy, and manage cloud applications.
6
6
7
7
This repo includes:
8
8
9
-
- Public releases of the Defang CLI; [click here](https://github.com/defang-io/defang/releases/latest/) for the latest version
9
+
- Public releases of the Defang CLI; [click here](https://github.com/DefangLabs/defang/releases/latest/) for the latest version
10
10
- Samples in Golang, Python, and Node.js that show how to accomplish various tasks and deploy them to the DOP using a Docker Compose file using the Defang CLI.
11
-
- Samples that show how to deploy an app using the [Defang Pulumi Provider](https://github.com/defang-io/pulumi-defang).
11
+
- Samples that show how to deploy an app using the [Defang Pulumi Provider](https://github.com/DefangLabs/pulumi-defang).
- Download the [latest binary](https://github.com/defang-io/defang/releases/latest/) of the Defang CLI. For this beta, MacOS users will have to explicitly allow running of downloaded programs in the OS security settings.
46
+
- Download the [latest binary](https://github.com/DefangLabs/defang/releases/latest/) of the Defang CLI. For this beta, MacOS users will have to explicitly allow running of downloaded programs in the OS security settings.
47
47
48
48
## Support
49
49
50
-
- File any issues [right here on GitHub](https://github.com/defang-io/defang/issues)
50
+
- File any issues [right here on GitHub](https://github.com/DefangLabs/defang/issues)
Copy file name to clipboardExpand all lines: samples/golang/Web Page and Form Post/README.md
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -11,7 +11,7 @@ This Go application demonstrates a simple form submission using the standard net
11
11
2. A <ahref="https://docs.defang.io/docs/concepts/compose">compose file</a> to define and run multi-container Docker applications (this is how Defang identifies services to be deployed). (compose.yaml file)
2. If you are using <ahref="https://docs.defang.io/docs/concepts/defang-byoc">Defang BYOC</a>, make sure you have properly <ahref="https://docs.aws.amazon.com/cli/latest/userguide/cli-chap-configure.html">authenticated your AWS account (optional)</a>
Copy file name to clipboardExpand all lines: samples/golang/go-mongodb-atlas/README.md
+2-2Lines changed: 2 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -13,10 +13,10 @@ Frontend: Basic HTML and JavaScript are used for the frontend to interact with t
13
13
Environment: Designed to run in containerized environments using Docker, which ensures consistency across different development and production environments.
2. If you are using <ahref="https://docs.defang.io/docs/concepts/defang-byoc">Defang BYOC</a>, make sure you have properly <ahref="https://docs.aws.amazon.com/cli/latest/userguide/cli-chap-configure.html">authenticated your AWS account</a>
18
18
Plus, make sure that you have properly set all environment variables up
19
-
3. There is a environment variable named MONGO_URI for the MONGODB connection string, in the compose file, be sure to put your mongodb URI, i.e.
19
+
3. There is a environment variable named MONGO_URI for the MONGODB connection string, in the compose file, be sure to put your mongodb URI, i.e.
Copy file name to clipboardExpand all lines: samples/nodejs/Basic Service/README.md
+2-2Lines changed: 2 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,5 +1,5 @@
1
1
# Express Request Inspector
2
-
This Node.js application, built with Express.js, is designed to inspect and display detailed information about incoming HTTP requests. It supports all HTTP methods and provides insights into the request path, method, headers, query parameters, and body. Note alongside your project, you should also include a package.json file that includes the relevant metadata such as package dependencies, scripts, project verrsions so that the Dockerfile can install necessary dependencies.
2
+
This Node.js application, built with Express.js, is designed to inspect and display detailed information about incoming HTTP requests. It supports all HTTP methods and provides insights into the request path, method, headers, query parameters, and body. Note alongside your project, you should also include a package.json file that includes the relevant metadata such as package dependencies, scripts, project verrsions so that the Dockerfile can install necessary dependencies.
3
3
4
4
5
5
@@ -8,7 +8,7 @@ This Node.js application, built with Express.js, is designed to inspect and disp
8
8
2. A <ahref="https://docs.defang.io/docs/concepts/compose">compose file</a> to define and run multi-container Docker applications (this is how Defang identifies services to be deployed).
2. If you are using <ahref="https://docs.defang.io/docs/concepts/defang-byoc">Defang BYOC</a>, make sure you have properly <ahref="https://docs.aws.amazon.com/cli/latest/userguide/cli-chap-configure.html">authenticated your AWS account (optional)</a>
13
13
14
14
## A Step-by-Step Guide
Collapse file: samples/nodejs/Web Page and Form Post/README.md
Copy file name to clipboardExpand all lines: samples/nodejs/Web Page and Form Post/README.md
+2-2Lines changed: 2 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,13 +1,13 @@
1
1
# Go Simple Form Submission App
2
-
This is a basic Node.js application using the Express framework to demonstrate handling a form submission. The application serves an HTML form where users can input their first name and then greets them personally upon submission. Note alongside your project, you should also include a package.json file that includes the relevant metadata such as package dependencies, scripts, project verrsions so that the Dockerfile can install necessary dependencies.
2
+
This is a basic Node.js application using the Express framework to demonstrate handling a form submission. The application serves an HTML form where users can input their first name and then greets them personally upon submission. Note alongside your project, you should also include a package.json file that includes the relevant metadata such as package dependencies, scripts, project verrsions so that the Dockerfile can install necessary dependencies.
3
3
4
4
5
5
## Essential Setup Files
6
6
1. A <ahref="https://docs.docker.com/develop/develop-images/dockerfile_best-practices/">Dockerfile</a>.
7
7
2. A <ahref="https://docs.defang.io/docs/concepts/compose">compose file</a> to define and run multi-container Docker applications (this is how Defang identifies services to be deployed).
2. If you are using <ahref="https://docs.defang.io/docs/concepts/defang-byoc">Defang BYOC</a>, make sure you have properly <ahref="https://docs.aws.amazon.com/cli/latest/userguide/cli-chap-configure.html">authenticated your AWS account (optional)</a>
2. If you are using <ahref="https://docs.defang.io/docs/concepts/defang-byoc">Defang BYOC</a>, make sure you have properly <ahref="https://docs.aws.amazon.com/cli/latest/userguide/cli-chap-configure.html">authenticated your AWS account</a>
11
11
Plus, make sure that you have properly set your environment variables like `AWS_PROFILE`, `AWS_REGION`, `AWS_ACCESS_KEY_ID`, and `AWS_SECRET_ACCESS_KEY`.
Copy file name to clipboardExpand all lines: samples/nodejs/blogstarter/_posts/guide.md
+6-6Lines changed: 6 additions & 6 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -9,28 +9,28 @@ author:
9
9
ogImage:
10
10
url: "/assets/blog/guide/cover.jpg"
11
11
---
12
-
We created this template to help you quickly launch your blogs. This template is built using Markdown and Next.js. We convert Markdown files to HTML string by using `remark` and`remark-html`. You can easily add new blogs or modify existing content (like this paragraph) by simply adding or changing the markdown files. We helped you to build all necessary files for deploying it through Defang. By simply downloading *[Defang](https://github.com/defang-io/defang)* and running `defang login` and `defang compose up` in the command line interface on your local machine, your blog will be available to everyone in the world.
12
+
We created this template to help you quickly launch your blogs. This template is built using Markdown and Next.js. We convert Markdown files to HTML string by using `remark` and`remark-html`. You can easily add new blogs or modify existing content (like this paragraph) by simply adding or changing the markdown files. We helped you to build all necessary files for deploying it through Defang. By simply downloading *[Defang](https://github.com/DefangLabs/defang)* and running `defang login` and `defang compose up` in the command line interface on your local machine, your blog will be available to everyone in the world.
13
13
14
14
Here is a detailed guide:
15
15
16
16
### How to edit the blog
17
-
1. Copy the code from our *[Github Repository](https://github.com/defang-io/defang/tree/main/samples/nodejs)* to your local machine
17
+
1. Copy the code from our *[Github Repository](https://github.com/DefangLabs/defang/tree/main/samples/nodejs)* to your local machine
18
18
2. In "_posts", there are three existing Markdown files, representing what is currently shown to you in the template. You could replace the content within.
19
19
3. If you want to replace the cover image, you have to firstly add your image to the code. Then, find the "coverImage" tag and replace the directory (for example, "/assets/blog/exploration/cover.jpg") to the directory of your image.
20
20
4. You may find other tags within the Markdown file:
21
21
- Exerpt
22
-
The exerpt tag refers to the summary you would see at the main page.
22
+
The exerpt tag refers to the summary you would see at the main page.
23
23
- Date
24
24
The date tag refers to the time the current blog is created. The earliest blog will be placed at the top.
25
25
- Author
26
-
The author tag refers to the name and the icon you would see beneath the blog title. You could replace them to your designated name and profile icon.
26
+
The author tag refers to the name and the icon you would see beneath the blog title. You could replace them to your designated name and profile icon.
0 commit comments