An API built with Laravel for managing real estate properties.
- Create properties
- List properties with advanced filtering
- Laravel 11.x
- PHP 8.2+
- MySQL Database
- Clone the repository.
- Install dependencies using Composer:
composer install
- Set up the .env file to use the MySQL database.
- Run database migrations:
php artisan migrate
- Start the Laravel server:
php artisan serve
- Access the application via the local server URL, probably at http://127.0.0.1:8000.
- Endpoint:
GET /api/properties
- Measurable values (size, bedrooms, price) uses a special filter format:
Comparison operators followed by a numeric value.
- size
=>:100
(Properties larger than 100) - price
<=:250000
(Properties priced at or below 250,000) - bedrooms
=:3
(Properties with exactly 3 bedrooms)
- size
- The radius while searching by coordinates should be in
Meters
type
street
size
size_unit
bedrooms
price
latitude
longitude
radius
- Endpoint:
POST /api/properties
- User authentication/authorization.
- Roles. e.g. The agency agents can create listings.
- Full CRUD endpoints.
- A 'suggestions' or 'related' list of properties when viewing a single property.
- ...