This project is small web called "Epic dragons". The only purpose of this project is to create simple authentication
secured by httpOnly
cookies for SPA with separated backend and frontend.
Project is implemented in MEVN stack:
- MongoDB
- Express.js
- Vue.js
- Node.js
For authentication are used JSON Web Tokens (JWT). Those are saved in httpOnly cookies. In frontend are httpOnly cookies
unreachable so for protecting routes and other stuff in frontend is used state of Vue application. Easy state management is
done by Vuex
.
npm run backend
- starts the express servernpm run frontend
- starts vue development servernpm run dev
- starts both => backend and frontendnpm run build
- installs dependencies and builds the frontend