jzequn / nwen304-project

An e-commerce website build on nodejs. Use passport-local, passport-google-oauth, passport-facebook for user registration and authentication. Host on heroku and connect to heroku postgreSQL. With restful APIs...

Home Page:https://nwen304-team-project.herokuapp.com/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

NWEN304 Team project

Readme author: Zequn Jiang

Our project is host on heroku, click here to browse our website

How to use our code

1. Download the project
2. Run 'npm install'
3. Create .env file in the root folder, add environment variables to .env file.
    Variable for postgreSQL: DATABASE_URL
    Variable for passport-facebook:
            FB_APP_ID
            FB_APP_SECRET
            FB_CALLBACK_URL
    Variable for passport-google-oauth 2:
            GOOGLE_CLIENT_ID
            GOOGLE_CLIENT_SECRET
            GOOGLE_CALLBACK_URLS
4. Run 'npm start' to start the app

Related research

Sample of using passport w/ mult strategies

cURL

Find more here
More curl here

Small things to be aware of

  1. I was working on other people's laptop and forget to config the git user.name and git user.email

forget to config github name when working on other pc

About

An e-commerce website build on nodejs. Use passport-local, passport-google-oauth, passport-facebook for user registration and authentication. Host on heroku and connect to heroku postgreSQL. With restful APIs...

https://nwen304-team-project.herokuapp.com/


Languages

Language:JavaScript 63.3%Language:HTML 36.6%Language:CSS 0.1%