Skip to content

oggam/node-api

Repository files navigation

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

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published