Just simple React app with express as backend and NeDB as database.
- Clone the project
git clone https://github.com/jasonbrandoo/react-auth.git
- Go to server folder
cd react-auth/server
- Install depedencies for express
npm install
- Go back to root folder
cd ..
- Install depedencies for react
npm install
- Run the server and client
npm run server & npm start
npm run server
Runs the express server
npm start
Runs the app on development mode
npm run lint
Runs eslint on src/ folder
POST http://localhost:3001/api/v1/register
(Register)
POST http://localhost:3001/api/v1/login
(Login)
GET http://localhost:3001/api/v1/check
(Check token)
GET http://localhost:3001/api/v1/register
(Logout)