This template sets up the barebones structure of a site sign up & login using Passport and Sequelize on top of Node and Express with a PostgreSQL database.
git clone https://github.com/niamurrell/passport-sequelize-demo.git
cd passport-sequelize-demo
- Download dependencies with
yarn
- Install postgres on your local machine with brew
brew install postgres
(Mac) or download manually. Installation can be tricky, please see other tutorials for setup (or maybe this will help). - In a new Terminal tab, open postgres command line interface:
psql
- Create demo database
CREATE DATABASE authdemo;
- Check success
\l
. 'authdemo' should be in your list of databases. - Open demo database
\connect authdemo
- Go back to the
passport-sequelize-demo
directory in the original Terminal tab. node app.js
- Open localhost:3000/ in browser