This is a boilerplate created to turn it easier when I start a new project, it has an initial architecture and good practice implementations that I usually follow in my Node.js projects.
Stuff we use:
- Docker and Docker Compose to create our development and test environments.
- Express a web framework for Node.js
- CircleCI for deployment and as general CI.
- Postgres to store our data and
- Sequelize as a Node.js ORM.
- Jest as a framework for tests.
To run the project you just need to run the following command:
make
To run the migrations you just need to run the following command:
make setup
If you want to run only the application, just run the following command:
docker-compose up app
or
make app
Then access http://localhost:5678/_health_check
in your browser or Postman and it should return Status Code 200
.
To run the application tests just run the following command:
docker-compose up app-test
or
make test
Method POST: http://localhost:5678/example
Body
{
"name": "Luiz Felipe",
"email": "[email protected]"
}
{
"data": {
"name": "Luiz Felipe",
"email": "[email protected]",
"message": "Success example message",
"status": "example_success",
}
}