This is the backend server for the Real Estate application.
Before running the server, make sure you have the following installed:
- Node.js (version 18 or higher)
- npm (Node Package Manager)
- Clone the repository:
git clone https://github.com/mp051998/real-estate-backend.git
- Navigate to the project directory:
cd real-estate-backend
- Install the dependencies:
npm install
-
Setup NVM
nvm install 18.19.0 nvm use 18.19.0
Before running the server, you need to configure the .env file Add the following mandatory key value pairs to the .env file:
MONGODB_CONNECTION_URI=<MongoDB URI>
MONGODB_DATABASE_NAME=<MongoDB Database Name> # 'real-estate-master'
To build the project, run the following command:
npm run build
To start the server, run the following command:
npm start