https://babgee.pythonanywhere.com/
Smart parking management is a web-based system with the following functionalities.
- Register new users.
- Log in registered users.
- Logged in users can book for a parking spot from different parking zones, get parking receipt with parking details and checkout from a parking spot.
- Admins can create parking zones indicating the number of parking spots available.
- Admin can view parking details of all users.
These instructions will get you a copy of the project up and running on your local machine for development and testing purposes. See installing instructions for notes on how to deploy the project on a live system.
You will find hereafter what I use to develop and to run the project
- Python 3
- Django 3.1.6
- pipenv (not mandatory but highly recommended)
Get a local copy of the project directory by cloning "smart-parking-management" from github.
git clone https://github.com/BabGee/smart-parking-management.git
cd into the folder
cd smart-parking-management
The Framework, Packages and Libraries used in this project are installed in a virtual environment(Recommended); i use pipenv. Instructions on how to get pipenv here
python3 -m pipenv shell
Install the requirements
python3 -m pip install -r requirements.txt
Then follow these steps:
- Move to root folder
cd parking_management
-
Create a
.env
file in the root folder, provide the required database information to the.env
file (.env.example file is provided to help set this information). You can choose to rename the .env.example to .env -
Create the tables with the django command line
python3 manage.py makemigrations
then migrate the changes
python3 manage.py migrate
Create an admin using command below and enter your preferred username, email and password.(You will use this to login django admin and create parking lots etc)
python3 manage.py createsuperuser
- Finally, run the django server
python manage.py runserver
- Access the django admin by adding ' /admin' to the url and login to create parking lots
I use exclusively Github
This is an open source project not under any particular license. However framework, packages and libraries used are on their own licenses. Be aware of this if you intend to use part of this project for your own project.