A example REST API example made with Node.js
- Docker
- Node.js >= 12
npm install
docker-compose up -d
Two services will be created:
- A MySQL database running on port 3306
- A Database admin (adminer) running on port 8080 (http://localhost:8080)
Before start using the database, make sure that the container status is healthy using docker ps
. (It may take up to 5 minutes)
Before using the project, the following command must be executed:
npm run db:migrate
npm run dev
The default port is 3333. But it can be changed on .env
file
In order to run the tests, a MySQL docker instance must be running with all migrations applied.
npm run test
npm run docs
👤 Andre L. Adriano
- Github: @andre000
- LinkedIn: @andreadriano
Give a ⭐️ if this project helped you!
This README was generated with ❤️ by readme-md-generator