Welcome to the ParkEasy repository! Follow the steps below to set up and run this project on your local machine.
[Authentication, Authorization, Pagination, Input Validation]
-
Python: Ensure that you have Python3.8+ installed on your system. You can download it from python.org.
-
Virtual Environment: Isolate your project in a virtual environment where no mismatch of versions and libraries from your local machine occurs.
-
MySQL: Ensure you have a MySQL server installed on your system for the database.
git clone [email protected]:codegeek004/ParkEasy.git
cd ParkEasy
python -m venv venv
source venv/bin/activate # On macOS/Linux
venv\Scripts\activate # On Windows
Install all the python packages from requirements.txt
pip install -r requirements.txt
- To configure the database in the ParkEasy directory.
- Go to the MySql server and create database named parking.
mysql -u <your_username> -p
create database parking;
use parking
- Update your username and password in the db.py file.
import mysql.connector
db_config1 = {
'host' : 'localhost',
'user' : 'root', #replace this with your username
'password' : 'root', #replace this with your password
'database' : 'parking'
}
db = mysql.connector.connect(**db_config1)
cursor = db.cursor(buffered=True)
python app.py
Access the project at http://127.0.0.1:5000
Contributions are welcome! Please fork the repository, make your changes and create a pull request.