Boilerplate to get started with Node.js, Express, Sequelize and Passport.js.
User Registration and authentication example.
Usually all Node.js projects are associated with MongoDB for the model, I wanted a boilerplate which was associated with Sequelize.js ORM.
- Read up on Node.js and create some simple Express.js sites
- Understand how routes work and play around with it
- Read up on ORM and Sequelize here first and then here
- Understand how Passport.js works here
- Also understand how
connect-flash
works here
- Copy env-sample to .env and edit to match your database setup.
NODE_ENV=development
DBSERVER=localhost
DBUSER=dbusername
DBPASS=dbuserpassword
DB=databasename