Skip to content

💻 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.

License

Notifications You must be signed in to change notification settings

lflimeira/nodejs-boilerplate

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

17 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

💻 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

About

💻 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.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published