Property Pro Lite is a platform where people can create and/or search properties for sale or rent.
- User can sign up.
- User can sign in.
- User (agent) can post a property advert.
- User (agent) can update the details of a property advert.
- User (agent) can mark his/her posted advert as sold.
- User (agent) can delete a property advert.
- User can view all properties adverts.
- User can view all properties of a specific type - 2 bedroom, 3 bedroom, mini flat etc.
- User can view a specific property advert.
- User can reset password.
- flag/report a posted AD as fraudulent.
- User can add multiple pictures to a posted ad.
- The application should display a Google Map with Marker showing the red-flag or intervention location.
| Method | Endpoint | Description |
|---|---|---|
| POST | /auth/signup |
User create an account |
| POST | /auth/signin |
Sign in / log in a user |
| POST | /property |
Create a property advert |
| GET | /property |
Fetch all available property adverts |
| GET | /property/<:property-id> |
get a specific advert |
| DELETE | /property/<:propertyId> |
Delete an delete advert you own |
| PATCH | /property/<:propertyId>/price |
Update the price of a property advert |
| PATCH | /property/<:property-id>/sold |
Mark an advert as sold |
| GET | /api/v1/property?type=property-type |
get all available property adverts of specific type |
| POST | /property/<:property-id>/flag |
Flag an advert as fraudulent |
| GET | /property/<:property-id>/flag |
Get all flags of a given property |
First ensure that you have Nodejs and npm installed in your computer
- Clone this repository and get to the project directory
git clone https://github.com/kitingu/propertypro.git
cd propertyPro
git checkout develop- Install the project dependencies
npm install- Run the application:
npm run dev npm run testNavigate to https://kitingu.github.io/PropertyPro/index.html to view the pages