Hello everyone, In this project, we are going to create MERN Stack App with Login System. We will take a look at how to create login, registration, profile, reset password routes and learn how to send Mail from the Node.js backend application.
Download this project from above link. Create two configaration files into the project. First in the client and second in the server.
In the Client Folder create .env file and put this code inside it.
.env
REACT_APP_SERVER_DOMAIN='<server_domain>' # example 'http://localhost:8080'
After that create a file in the Server Folder with the name config.js and put the below code inside it.
config.js
export default {
JWT_SECRET : "<secret>",
EMAIL: "[email protected]", // testing email & password
PASSWORD : "sMf46xCzrvdrxvuagc",
ATLAS_URI: "<MONGODB_ATLAS_URI>"
}
Note: The ATLAS_URI is important to work this project.
Now, create all these variables in the project and make sure you set ATLAS_URI variable. Otherwise, the project will not work.
Learn More about this project from the - Daily Tuition Youtube Channel.