A Login and registration form based on JSON Web Token Authorization and encrypted password stored in mongoDB build using MongoDB, Express.js, and Node.js at the back-end and React/Redux for the UI.
Cookies is used at the client side to store user information
Your machine should have npm(or yarn), NodeJS and MongoDB server installed to use this locally
git clone https://github.com/maxwell-kimaiyo/Login-Form-MERN-Stack.git
- Install server dependencies(in root directory)
npm install
- Install client dependencies
cd client
npm install
- You can either use your own local mongoDB database or any cloud database just change mongoURI and secretOrKey in config.js file
export default {
MONGODB_URL: process.env.MONGODB_URL || 'mongodb://localhost:27017/User',
};
- This app uses concurrently so you don't need to run 2 different instances for client and server, use this command in root directory to run the app.
npm run dev
Reach out to me at one of the following places!
- Twitter at
@maxxmalakwen
Let me know if you have any questions. Email Maxwell
- MIT license
- Copyright 2015 © Maxwell Kimaiyo.