This small project implements authentication and security features for the web application made using Node.
- cookie-session: Simple cookie-based session middleware.
- dotenv: Loads environment variables from .env file
- express: Fast node.js network app framework.
- helmet: Help secure Express/Connect apps with various HTTP headers.
- passport: Simple, unobtrusive authentication for Node.js.
- passport-google-oauth20: Google (OAuth 2.0) authentication strategy for Passport.
- Ensure you have Node installed.
- Create /.env file with these properites.
- CLIENT_ID
- CLIENT_SECRET
- COOKIE_KEY_1
- COOKIE_KEY_2
- Installing packages.
npm install
- On your terminal:
npm start
- Go to
https://localhost:3000/
to see the implementation