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
This project demonstrates both client-side component rendering and hydration with Angular, as well as server-side rendering with Node.js and Socket.IO for real-time communication. It also includes Docker configurations for easy deployment.
5
+
This sample demonstrates how to deploy a full-stack Angular and Node.js application with Defang. It uses Socket.IO for real-time communication. The Docker setup ensures the app can be easily built and deployed.
6
6
7
-
## NOTE
7
+
## Prerequisites
8
8
9
-
This sample showcases how you could deploy a full-stack application with Angular and Node.js using Defang. The Docker setup ensures the app can be easily built and deployed.
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.
2. (Optional) If you are using [Defang BYOC](https://docs.aws.amazon.com/cli/latest/userguide/cli-chap-configure.html) authenticated with your AWS account
15
-
3. (Optional for local development) [Docker CLI](https://docs.docker.com/engine/install/)
18
+
To run the application locally, you can use the following command:
2. (Optional) If you are using [Defang BYOC](https://docs.aws.amazon.com/cli/latest/userguide/cli-chap-configure.html) make sure you have properly authenticated your AWS account
Deploy your application to the Defang Playground by opening up your terminal and typing:
42
+
```bash
43
+
defang compose up
44
+
```
45
+
46
+
### BYOC (AWS)
31
47
32
-
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:
48
+
If you want to deploy to your own cloud account, you can use Defang BYOC:
33
49
34
-
1.`docker compose -f compose.dev.yaml up --build`
50
+
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`.
51
+
2. Run in a terminal that has access to your AWS environment variables:
52
+
```bash
53
+
defang --provider=aws compose up
54
+
```
35
55
36
56
---
37
57
@@ -41,4 +61,4 @@ Short Description: A full-stack application using Angular for the frontend and N
0 commit comments