zakrian07 / react-auth-example

Example application for implementing authentication on a react application with express, mongodb, and react-router.

Home Page:https://medium.com/@faizanv/authentication-for-your-react-and-express-application-w-json-web-tokens-923515826e0

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

React Authentication Example

This is an example application I created to showcase how to implement authentication on a web application using React and react-router on the frontend and node.js, express, mongodb, and mongoose on the backend.

The associated blog post for this example can be found here.

To run the application first clone the repository

git clone https://github.com/faizanv/react-auth-example.git

Install the dependencies

npm install

Make sure that MongoDB is running

mongod

run the server

npm run server

and then in a separate window/tab run the frontend

npm start

The application should be running at http://localhost:3000/

This project was bootstrapped with Create React App. You can find the most recent version of their guide here.

About

Example application for implementing authentication on a react application with express, mongodb, and react-router.

https://medium.com/@faizanv/authentication-for-your-react-and-express-application-w-json-web-tokens-923515826e0


Languages

Language:JavaScript 86.4%Language:HTML 10.6%Language:CSS 2.9%