If you are like me, then I believe u don't like spending precious amounts of time doing repetitive tasks. I created node-boilerplate for those of you who are like me, to give you an easy and minimalistic boilerplate to kickstart your project and get you up and running as quick as possible, complete with authentication, authorization, form input validation and access control.
This boilerplate assumes that you are using nodejs with express and mongoDB with mongoose as the database and ORM respectively. Notwithstanding, this boilerplate is also usable with other databases and ORMs e.g MySQL with sequelize. A sequelize boilerplate for use with relational databases like postgress and SQL server is coming soon! Be on the lookout.
- Clone or download
- Run
npm installto install all dependencies - Create a .env file in the root directory and edit as below;
DB_CONNECT = mongodb://host:port/database-name
PORT = xxxx
TOKEN_SECRET = jwt_secret_token - Code away. Enjoy!