A boilerplate for Node.js web applications.
The easiest way to get started is to clone the repository:
# Get the repo
git clone https://github.com/emrtnm/nodejs-boilerplate.git .
# Install NPM dependencies
npm install
# Rename .env file
.env.example to .env
# Then simply start your app
npm run dev
Package | Description |
---|---|
body-parser | Node.js body parsing middleware. |
chalk | Terminal string styling done right. |
dotenv | Loads environment variables from .env file. |
errorhandler | Development-only error handler middleware. |
express | Node.js web framework. |
express-flash | Provides flash messages for Express. |
express-session | Simple session middleware for Express. |
mongoose | MongoDB ODM. |
morgan | HTTP request logger middleware for node.js. |
multer | Node.js middleware for handling multipart/form-data . |
pug | Template engine for Express. |
Enjoy!