This repository contains the backend and frontend code for the Real Estate App, built with Node.js, Express, React and MongoDB.
These instructions will get you a copy of the project up and running on your local machine for development and testing purposes.
- Node.js
- npm
- MongoDB
- Clone the repo:
git clone https://github.com/SumukhaNadig/real-estate-dms.git cd real-estate-dms/backend
- Install npm packages:
npm install
- Setup your environment variables in .env file and start the server
node src/app.js
- Add the URI to your MongoDB DB as well as the secret key that will be used for auth in .env file
- GET /properties - Retrieve all properties.
- GET /properties/:id - Retrieve a single property by ID.
- POST /properties - Add a new property (requires authentication).
- POST /users/register - Register a new admin user.
- POST /users/login - Login for admin users.
- Once the above repo is cloned, cd into frontend directory and install the packages
cd real-estate-dms/frontend npm install
- Start the frontend with
npm start