-
Need to have a PostgreSQL database:
- Needs a table: "Users"
- Columns: "Id" - autoincrement, primary key, "Username" - unique, "GoogleId" - unique, "Thumbnail"
-
.env file in the main directory with these environmental variables set:
- GOOGLE_API_CLIENT_ID - google API client ID
- GOOGLE_API_SECRET - google API secret key
- PGDATABASE - database name
- PGHOST - host address
- PGPORT - database port
- PGUSER - database user
- PGPASSWORD - database user password
- KEYS - key for encrypting cookies
-
Tech stack
- Node JS
- EJS
- Passport
rokasdie / google-oauth-passport-project Goto Github PK
View Code? Open in Web Editor NEWProject to create oAuth 2.0 with Google