davidhalasz / auth-example

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

A Simple Auth example

It is a MERN project based on Node.js Express, MongoDB and React. The backend was written in Javascript and the frontend was written with TypeScript. In the application there are registration and login forms. After login the user's auth data will be encoded with JSON Web Token and being stored to cookie. This project represent how to check auth data and allow to display Dashboard page if user is logged in.

USAGE

MongoDB

  1. Install MongoDB Community Edition More info
  2. Run it. For example on MacOS:
brew services start mongodb-community@6.0 

backend

npm install
npm run dev

frontend

npm install
npm start

Author

David Halasz

About


Languages

Language:TypeScript 61.4%Language:JavaScript 33.2%Language:HTML 4.1%Language:CSS 1.2%