This application allows users to search for properties based on schools in the locality, mainly for couples and family planners.
project_root/
├── backend/
│ └── requirements.txt
├── frontend/
├── .env
└── docker-compose.yml
- Docker and Docker Compose
- Git
-
Clone the repository:
git clone <repository-url> cd <project-directory>
-
Create a
.envfile in the project root with the following content:DB_NAME=your_project_db_name DB_USER=your_db_username DB_PASSWORD=your_secure_password DB_HOST=db DB_PORT=5432Replace the placeholders with your actual database credentials.
-
Build and start the Docker containers:
docker compose up --build -d
-
Once the containers are running, apply database migrations:
docker compose exec backend python manage.py migrate -
Create a superuser for the Django admin:
docker compose exec backend python manage.py createsuperuserFollow the prompts to create the superuser.
- The backend API will be available at
http://localhost:8000 - The Django admin interface will be at
http://localhost:8000/admin - The frontend will be available at
http://localhost:3000
Your changes will be reflected immediately. The Django development server will auto-reload.
docker compose up --build -ddocker compose exec backend python manage.py makemigrations
docker compose exec backend python manage.py migratedocker compose down
docker compose up