Simple example Nodejs API with express in a docker container.
- node 18
- yarn
- docker
- docker-compose
Create file .env in root project based on .env.example file.
$ yarn install
# localhost:3000/
$ docker-compose up
# to clean up
$ docker compose down -v
$ docker rmi -f $(docker images -a -q)
$ cd test
$ npm run test