This is
This example created using monorepo-plumier-vue starter. Use npx plumier-starter
- Vue.js as the frontend
- Plumier as the backend
- MongoDB database using Mongoose and
@plumier/mongoosehelper - Github actions (CI)
- Heroku automatic deployment (CD)
- Monorepo using Yarn workspace
- For SPA don't store JWT token on localStorage/sessionStorage, Instead store JWT token on cookie with option
HttpOnlyandSameSite - Generate social login dialog url on server side to prevent hardcoded social provider client id
- Secure social login dialog url with CSRF token on STATE parameter then validate the token on social login callback
- Authorize endpoint to restrict access to some users
- Validate data to prevent malformed data which will cause unexpected error
- Force HTTPS/SSL on heroku facility
- Node.js >= 10
- MongoDB
- Yarn
git clone https://github.com/plumier/tutorial-monorepo-social-login.git
Set appropriate value for social login configuration :
- Backend: rename the
.env.exampleinto.envand change the appropriate value.
yarn installto install dependenciesyarn debugto start