/react-express-passportjs

A React & Express app that demonstrates how to create and use authentication via PassportJS with a React frontend and Express backend

Primary LanguageJavaScriptMIT LicenseMIT

react-express-passportjs

A simple app that demonstrates how to create use authentication via PassportJS with a react frontend and express backend

Start

There are a few ways to start up and run the express-server and the react-app. Each has it's own Makefile but there is also a Makefile in the root directory that will run the commands of the sub folders.

Steps to run

  1. Open a terminal for each app
  2. Run make all which will run the npm install followed by the npm start

Additional Notes

  • The express-server is running on port 3001
  • The react-app is running on port 3000
  • The react-app is proxying the express-server via the package.json file
  • You must set create a .env file in the express-server and populate it the same way as the .env.example file
  • There are also Dockerfiles in each sub folder if you would like to go that approach