Skip to content

wwwsolutions/solutions-nx-ms-node-docker-basic-template

Repository files navigation

Starter Template

solutions-nx-ms-node-docker-basic-template

Nx Microservices with Node and Docker

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.

Services

'API' Application

api

  • NestJs
  • Express
  • Handlebars

'VIEW' Application

html

  • Handlebars

Production build

  1. Build apps:

    # Build app 'api'
    nx build api
    
    # Build app 'html'
    nx build html
    
    # or:
    npm run build:all
  2. Run containerization:

    # Create Docker image: 'api'
    npm run deploy:api
    
    # Create Docker image: 'html'
    npm run deploy:html
    
    # Launch Docker container
    npm run deploy
  3. Test:

    # Run in browser
    http://localhost:8080/

Source

Nx and Node Microservices


This project was generated using Nx.

About

MICROSERVICES --> NX + DOCKER + NESTJS + WEB

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published