- Python 3.8 or higher
- PostgreSQL 12 or higher
- pip (Python package manager)
- Git
# For Ubuntu/Debian
sudo apt update
sudo apt install postgresql postgresql-contrib
# For macOS (using Homebrew)
brew install postgresql
- Download and install PostgreSQL from the official website
- During installation, note the username (
postgres
) and password you set
sudo systemctl start postgresql
sudo systemctl enable postgresql # Start PostgreSQL on boot
- Open pgAdmin or use Windows Services (
services.msc
) to start PostgreSQL - Ensure PostgreSQL Server is running
sudo -i -u postgres
psql
CREATE DATABASE parkeasy_db;
ALTER USER postgres WITH PASSWORD 'postgres';
GRANT ALL PRIVILEGES ON DATABASE parkeasy_db TO postgres;
\q
git clone https://github.com/yourusername/parkeasy.git
cd parkeasy
Before running the Django app, create and activate a virtual environment.
python3 -m venv venv
source venv/bin/activate
python -m venv venv
venv\Scripts\activate
Ensure all required dependencies are installed.
pip install -r requirements.txt
If new packages were installed, update requirements.txt
:
pip freeze > requirements.txt
Run the following commands to set up the database:
python manage.py makemigrations
python manage.py migrate
If you need access to the Django Admin panel:
python manage.py createsuperuser
Follow the prompts to create an admin user.
Start the Django app:
python manage.py runserver
Access the app at http://127.0.0.1:8000/
Execute the test suite:
python manage.py test
For a specific app:
python manage.py test booking
If you install any new libraries, make sure to update requirements.txt
:
pip install <package-name>
pip freeze > requirements.txt
- ParkEasy: Main ParkEasy orchestration app
- accounts: To manage accounts
- listing: For parking spot owners to list and view their parking spots
- booking: For users to book parking spots, see the spots they booked and manage them
- Styling: Bootstrap
- Django: Django Documentation
- Django REST Framework: DRF Documentation