petrchatrny / simple-auth

Simple auth app using MEVN stack

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

simple-auth - Epic dragons

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.

commands

  • npm run backend - starts the express server
  • npm run frontend - starts vue development server
  • npm run dev - starts both => backend and frontend
  • npm run build - installs dependencies and builds the frontend

About

Simple auth app using MEVN stack

License:MIT License


Languages

Language:JavaScript 48.1%Language:Vue 44.7%Language:HTML 5.1%Language:CSS 2.2%