Boilerplate | ExpressJS server
ExpressJS backend boilerplate including:
Prepopulated with Express middlewares:
Facilities:
express-generator/
├── app.js
├── package.json
├── .gitignoe
├── routes
│ │── index.js
│ └── base.routes.js
├── models
│ └── user.model.js
├── utils
│ └── index.js
├── middlewares
│ └── index.js
├── views
│ │── layout.hbs
│ │── errors
│ │ │── not-found.hbs
│ │ └── server-error.hbs
│ │── pages
│ │ └── index.hbs
│ └── partials
├── public
│ ├── img
│ ├── js
│ │ └── script.js
│ └── css
│ └── styles.sass
├── config
│ │── db.config.js
│ │── debug.config.js
│ │── hbs.config.js
│ │── locals.config.js
│ │── middleware.config.js
│ │── sass.config.js
│ └── views.config.js
└── bin
├── seeds.js
└── www
npm i
on the root directory.env
file on the root directory to link the MongoDB URI (MONGODB_URI
) and port (PORT
)npm run dev
command on the root directory