Simple Node + Express boilerplate for starting a new project.
-
Before running the project for the first time, you will need to install all the dependencies using:
$ npm install
-
Create
.env
file into project's root followingenv.example
structure.
In the project directory, you can run:
-
npm start
: starts the server at port5000
as default. Open http://localhost:5000 to view it in the browser. -
npm run local
: starts the server withnodemon
for development purpose. -
npm run test
: runs all the tests related to the server. -
npm run lint
: runs linter tool for identifying and reporting common issues. -
npm run lint:fix
: runs linter tool for fixing common issues.