Skip to content

Latest commit

 

History

History
90 lines (64 loc) · 1.86 KB

README.md

File metadata and controls

90 lines (64 loc) · 1.86 KB

💻 Node.js Boilerplate

Introduction

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.

Technology

Stuff we use:

Run project configured

To run the project you just need to run the following command:

make

Run only migrations

To run the migrations you just need to run the following command:

make setup

Run just the Application

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.

Run tests

To run the application tests just run the following command:

docker-compose up app-test

or

make test

Endpoints, response e requests

Create example

Request

Method POST: http://localhost:5678/example

Body

{
    "name": "Luiz Felipe",
    "email": "[email protected]"
}

Response

{
    "data": {
        "name": "Luiz Felipe",
        "email": "[email protected]",
        "message": "Success example message",
        "status": "example_success",
    }
}

Credits