-
Clone this repository or fork it.
- To clone this repository type
git clone https://github.com/Ak-Srivastav/real-estate.git
on your command line - To fork this repository, click fork button of this repository then type
git clone https://github.com/<your username>/real-estate.git
- To clone this repository type
-
Inside your project folder, create a new file named
.env
which stores informations about server side such asMONGO_URI
,JWT_SECRET
andPORT
informations- store your database URI inside
MONGO_URI
variable - store your security key inside
JWT_SECRET
variable - example:
MONGO_URI = mongodb+srv://<username>:<password>@<collection_name>.<providedbymongodb>.mongodb.net/ (MongoDB Atlas) or MONGO_URI = mongodb://127.0.0.1:27017/realestate (MongoDB Compass) JWT_SECRET = Thisisanexampleofjwtsecretkey PORT = 3000 (Default) set the same port in project/client/vite.config.js
- store your database URI inside
-
Inside
client
folder, create a new file called.env
which stores your information about client side such asAUTH_DOMAIN
andMESSAGING_SENDER_ID
informations. Example is given.- store your security keys inside variables
- example:
VITE_FIREBASE_API_KEY = Akjfhjjhgj5j409ig_fkjhgjj4ht9HJj AUTH_DOMAIN = your-project-name.firebaseapp.comm PROJECT_ID = your-project-name STORAGE_BUCKET = your-project-name.appspot.com MESSAGING_SENDER_ID = 6039583758492 (Yours) APP_ID = 2:6346565456543:web:7939t8vn2jjt5g83gj94u5t4
-
Install all dependencies
- Client side: on the
client
directory typenpm install
- Server side: on the
project
directory typenpm install
- Client side: on the
-
Run it on node js:
- Client side: on the
client
directory typenpm run dev
- Server side: on the
project
directory typenpm start
- Client side: on the