npm install && npm run dev
npm install && npm start
First build the docker image.
docker build -t <tag_name> .
Then run it as below
docker run -p <EXTERNAL_MAPPING_PORT>:<SERVER_PORT> <tag_name>
You can configure server's port by specify environment variable PORT
, or by ENV PORT={SERVER_PORT}
from Dockerfile
, and if you are going to run this applicaiton as Docker container.
Make sure your node.js version >= 10.0.0, then run tests by following command.
npm test