/node-api

Primary LanguageJavaScript

node-api

A simple example for a API written in NodeJS, using Docker to my students.

tests

Using Jest

to run

npm run test

docker

docker build .
docker run -p 3000:3000 <build-id>

tests

docker build -f Dockerfile-test .
docker run <build-id>

docker-compose

docker-compose up