Initailly clone the code by using the following command:
git clone https://github.com/NwabKhan/mern-estate.git
After that go to client directory by:
cd client
Now Install all the dependencies by:
npm i
And simply type:
npm run dev
Congratulation! The frontend is on!
To set up backend go to api directory by typing folowing command in the terminal:
cd api
Now Install all the dependencies by:
npm i
And simply type:
npm run dev
Congratulation! The Backend is ready!
Do not forget to add environment veriables:
- Create a .env file in the root of /api directory
- Create a variable MONGO_KEY and write your MongoDB key
- Create a veriable JWT_SECRET_KEY and assign it to any of your secret pass
Write down your firebaseConfig in the /client/src/firebase.js for google authentication