Skip to content

Latest commit

 

History

History
54 lines (43 loc) · 2.74 KB

README.md

File metadata and controls

54 lines (43 loc) · 2.74 KB

Real Estate

🧰:Languages and Tools:

NodeJS ExpressJS ReactJS MongoDB Redux Redux-Toolkit Firebase TailwindCSS

How to run:

  • 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
  • Inside your project folder, create a new file named .env which stores informations about server side such as MONGO_URI, JWT_SECRET and PORT 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
    
  • Inside client folder, create a new file called .env which stores your information about client side such as AUTH_DOMAIN and MESSAGING_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 type npm install
    • Server side: on the project directory type npm install
  • Run it on node js:

    • Client side: on the client directory type npm run dev
    • Server side: on the project directory type npm start