Skip to content

edison-cy-yang/express-passportJS-template

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Express with Passport.js OAuth (Google) template

This is a template that uses Express as backend, Postgres for database, and Google OAuth using Passport.js.

Feel free to modify the users table schema src/db/schema/01_users.sql as needed.

Getting Started

  1. Create the .env.development by using .env.example as a reference: cp .env.example .env.development
  2. Update the .env file with your correct local (or cloud database) information
  • username: ``
  • password: ``
  • database: ``
  1. For GOOGLE_CLIENT_ID and GOOGLE_CLIENT_SECRET:
  1. Install dependencies: npm i
  2. Reset database: npm run db:reset
  • Check the db folder to see what gets created and seeded in the SDB
  1. Run the server: npm run local
  • Note: nodemon is used, so you should not have to restart your server
  1. Visit http://localhost:8080/

Dependencies

  • Node 10.x or above
  • NPM 5.x or above
  • PG 6.x

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published