Express authentication template using Passport + flash messages + custom middleware
- Run
npm install
to install dependencies- Use
npm run lint:js
to lint your JS - Use
npm run lint:css
to lint your CSS - Use
npm test
to run tests
- Use
- Setup the databases
- Change the database names in
config/config.json
to reflect your project - Run
createdb project_name_development
to create the development database - Run
createdb project_name_test
to create the test database
- Change the database names in
- Run
npm install
to install dependencies- Use
npm run lint:js
to lint your JS - Use
npm run lint:css
to lint your CSS - Use
npm test
to run tests
- Use
- Setup the databases
- Run
createdb express_auth_development
to create the development database - Run
createdb express_auth_test
to create the test database - Run
sequelize db:migrate
to run migrations
- Run