A property management application
There are two ways to set up the project: using Docker (recommended) or local setup.
-
Prerequisites:
- Docker
- Docker Compose
-
Clone the repository:
git clone <repository-url> cd MyRealEstate
-
Start the application:
docker-compose up --build
-
The following services will be available:
- Django application: http://localhost:8000
- MinIO Console: http://localhost:9001
- Mailpit UI: http://localhost:8025
- Tailwind CSS: http://localhost:8383
-
Create migrations
docker compose exec web python manage.py migrate
- Python 3.8+
- Node.js and npm
- PostgreSQL
- MinIO (for object storage)
-
Create and activate virtual environment:
python -m venv venv source venv/bin/activate # On Windows: venv\Scripts\activate
-
Install dependencies:
pip install -r requirements.txt
-
Configure environment variables:
export DEBUG=True export DJANGO_SETTINGS_MODULE=myrealestate.config.settings export DATABASE_URL=postgresql://postgres:postgres@localhost:5432/postgres export MINIO_ACCESS_KEY=minio_access_key export MINIO_SECRET_KEY=minio_secret_key export MINIO_BUCKET_NAME=mre-app-bucket export MINIO_ENDPOINT=localhost:9000
-
Run database migrations:
python manage.py migrate
-
Install Tailwind dependencies:
python manage.py tailwind install
-
Run the development server:
python manage.py runserver
-
In a separate terminal, start Tailwind CSS:
python manage.py tailwind start
- The application will be available at http://localhost:8000
- MinIO console can be accessed at http://localhost:9001
- Mailpit UI is available at http://localhost:8025
- Tailwind CSS live reload runs on http://localhost:8383