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
.envfile into project's root followingenv.examplestructure.
In the project directory, you can run:
-
npm start: starts the server at port5000as default. Open http://localhost:5000 to view it in the browser. -
npm run local: starts the server withnodemonfor 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.