solutions-nx-ms-node-docker-basic-template
We’ll be creating a simple product that will have two applications (a view application, and an API application). And we will have a Docker container running on http://localhost:8080 that will have two services communicating with each other within the container.
api
- NestJs
- Express
- Handlebars
html
- Handlebars
-
Build apps:
# Build app 'api' nx build api # Build app 'html' nx build html # or: npm run build:all
-
Run containerization:
# Create Docker image: 'api' npm run deploy:api # Create Docker image: 'html' npm run deploy:html # Launch Docker container npm run deploy
-
Test:
# Run in browser http://localhost:8080/
This project was generated using Nx.