Boilerplate full-stack MERN app with authentication using passport and JWTs.
- add your own
mongoURI
inconfig/keys
. - add your own secret key in
config/keys
that will be used by passport and JWT.
module.exports = {
mongoURI: "YOUR_MONGO_URI_HERE",
secretOrKey: "secret"
};
// Install dependencies for server & client
yarn && yarn client-install
// Run client & server with concurrently
yarn dev
// Server runs on http://localhost:5000 and client on http://localhost:3000
References:
- React and React Router for frontend
- Express and Node for the backend
- MongoDB for the database
- Redux for state management between React components
special thanks to rishipr's project, mern-auth