Skip to content

Flask Application using MySQL. Role based-authorization, Authentication using password hashing.

License

Notifications You must be signed in to change notification settings

codegeek004/ParkEasy

Repository files navigation

ParkEasy

Welcome to the ParkEasy repository! Follow the steps below to set up and run this project on your local machine.

Features

[Authentication, Authorization, Pagination, Input Validation]


Prerequisites

  1. Python: Ensure that you have Python3.8+ installed on your system. You can download it from python.org.

  2. Virtual Environment: Isolate your project in a virtual environment where no mismatch of versions and libraries from your local machine occurs.

  3. MySQL: Ensure you have a MySQL server installed on your system for the database.

Installation Steps

1. Clone the repository

    git clone [email protected]:codegeek004/ParkEasy.git
    cd ParkEasy

2. Setup the virtual environment

    python -m venv venv
    source venv/bin/activate    # On macOS/Linux
    venv\Scripts\activate       # On Windows

3. Install the requirements

Install all the python packages from requirements.txt

    pip install -r requirements.txt

4. Configure the databae

  1. To configure the database in the ParkEasy directory.
  2. Go to the MySql server and create database named parking.
    mysql -u <your_username> -p
    create database parking;
    use parking
  1. 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)

5. Run the server

    python app.py

Access the project at http://127.0.0.1:5000


Contributing

Contributions are welcome! Please fork the repository, make your changes and create a pull request.


License

License


About

Flask Application using MySQL. Role based-authorization, Authentication using password hashing.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published