Fullstack Responsive MERN App with Auth, Likes, Dark Mode | React, MongoDB, MUI
This project was created watching this Video.
You can see each Chapter of the video as an Step Commit.
- Go to https://www.mongodb.com/
- Create an Atlas account, verify your email
- In "Deploy a cloud database" select Free (unless you want to pay)
- In "Cloud Provider & Region" select the region closest to you
- In "Security Quickstart" step 1, select "Username and Password", complete the steps.
- Go to Database -> Connect
- Go to "Connect your application"
- Copy the following line
- Go to
/servercopy.env.exampleand rename to.env - Paste the copied line to
MONGO_URLmake sure to replace the user and the password with the ones used in the "Security Quickstart" - Set the
JWT_SECRETto anything you want - Remember to put the
MONGO_URLandJWT_SECRETin single quotes - Run
npm iinside/server - Run
npx nodemon index.js
- Inside
/clientrunnpm ithennpm run start.