This is a boilerplate to start a scalable application with nodejs and express and ready to use any ORM.
These instructions will get you a copy of the project up and running on your local machine for development and testing purposes. See deployment for notes on how to deploy the project on a live system.
* NodeJS v10.8
A step by step series of examples that tell you how to get a development env running
- If it is the first time running the project,
npm run devSetupwill set everything for you
npm run devSetup
- To run the project use
npm run startwith the following optional params
- -p port this will set the port to be used in your machine (default: 3000)
npm run start -- -p 3030
The expected output should be an info label
info: {
"environment": "dev",
"message": "Server running on dev in port 3030",
"timestamp": "2018-09-14T04:43:01.559Z"
}
To run tests you just need to run npm run test
To run eslint you just need to run npm run lint
Add additional notes about how to deploy this on a live system
- You will need to run
npm run prodSetupand this will set everything for you
npm run prodSetup
- To run the project use
npm run start, this should take the port from the environment variables (default: 3000)
npm run start
The expected output should be an info label
info: {
"environment": "prod",
"message": "Server running on dev in port 3000",
"timestamp": "2018-09-14T04:43:01.559Z"
}
- NodeJS - JavaScript runtime built on Chrome's V8 JavaScript engine
- Express - Node.js web application framework
- NPM - Dependency Management
This application is structure using Fractal Pattern
Contributors should adhere to the git best practices. Project includes commitizen integrated with husky and commitlint to implement guidelines used by Angular. test
We use SemVer for versioning. For the versions available, see the tags on this repository
- Uriel Contreras - Initial work