Skip to content

Latest commit

 

History

History
42 lines (22 loc) · 859 Bytes

README.md

File metadata and controls

42 lines (22 loc) · 859 Bytes

node-api

generator-api

dependencies

Docker 🐳 & docker-compose.

developing

run locally run using docker-compose:

sudo docker-compose up

the app runs on localhost:8080

production

build the Docker 🐳 container and run it:

you'll likely be consuming mongodb as a service, so make sure you set the env var to connect to it.

sudo docker build -t <image-name> .
sudo docker run \
  -p <host-port>:8080 \
  -d <image-name> \
  -e MONGO_DB_URI=mongodb://<username>:<password>@<host>:<port> \
  npm run start