Express application generator.
Mac
$ sudo npm install -g generate-express-server
Windows
$ npm install -g generate-express-server
The quickest way to build express app
Create the app:
$ npx create-express-app myApp
Install dependencies:
$ npm install
Configure .env file:
MONGO_URI=mongo_uri
JWT_SECRET=secretkey
JWT_LIFETIME=30d
More info about JWT ==> jsonwebtoken
Start your Express.js app at http://localhost:3000/
:
$ npm start