Boilerplate MERN Stack application with passport.js user authentication.
Passport is configured to simultaneously use Local and Google authentication strategies.
Google authentication is only set up to work for production builds. The React client must be compiled into static assets using npm run build
.
npm run start
npm run dev
- SECRET={secret key for express-session}
- MONGO_URI={MongoDB uri}
- GOOGLE_CLIENT_ID={Your Google client ID}
- GOOGLE_CLIENT_SECRET={Your Google client secret}