๐ Introduction
This project is a minimal and extensible authentication system built with Passport.js, aimed at simplifying user login flows using local and OAuth strategies. Whether you're building a personal app or a production-grade platform, this boilerplate gives you a clean foundation to get started quickly.
โจ Features
- Plug-and-play authentication with Passport.js
- Local login and registration
- OAuth integration with Google and GitHub
- Clean and minimal folder structure
- Tailwind CSS-based styling
๐งฐ Tech Stack
- Node.js
- Express.js
- Passport.js
- MongoDB (with Mongoose)
- Tailwind CSS
๐ฆ Dependencies
express
โ Web framework for Node.jspassport
โ Authentication middlewarepassport-local
โ Local strategy for Passportpassport-google-oauth20
โ Google OAuth 2.0 strategypassport-github2
โ GitHub OAuth strategymongoose
โ MongoDB object modelingbcrypt
โ Password hashingdotenv
โ Environment variable loader
๐ Documentation
You can find the full documentation and setup guide on the Documentation and the github repo at : GitHub repository.