Best Flask open-source libraries and packages

Data Representation Project

CRUD dentist/ patient management web application
Updated 3 years ago

Dental Clinic

[Project assessment for Data Representation Module GMIT 2020]


The repository contains a CRUD (Create, Read, Update, Delete) dentist/ patient management web application Dental Clinic. It is built using Flask, a microframework for Python, and MySQL, a database management system.

The project has the following features:

  • A Flask server with a REST API
  • Interaction with a third party API using jQuery
  • MySQL database with two table accessible with authorization
  • Web interface using AJAX calls
  • Online hosted on PythonAnywhere

Submitted by: Olga Rozhdestvina (Student No: G00387844)

Lecturer: Andrew Beatty

Programming Languages used: Python, HTML, JavaScript, MySQL


Table of Contents


Set up

Applications used for completion of the tasks are

Distribution of Python is Anaconda Python distribution.

Packages and modules used to complete the project:


How to run the code

  • On remote.

To view the project on remove please follow the link http://olgarozhdestvina.pythonanywhere.com/ on PythonAnywhere.

  • Locally.

To run on your local machine follow the instructions below.

  1. Get into directory "Data-Representation-Project" in your Command Interpreter

  2. Run createDatabase.py and then createTables.py to initialize a database "dentalclinic" or follow instructions in initdb.sql in MySQL command line client.

  3. Run python -m venv venv to make a virtual environment.

  4. Activate venv by running:

    • Windows:
    .\venv\Scripts\activate.bat
    • Linux:
    source venv/bin/activate
  5. Install packages by running pip install -r requirements.txt

  6. Set Flask app to flask_server and run it:

    • Windows:
    set FLASK_APP=flask_server
    flask run
    • Linux:
    export FLASK_APP=flask_server
    flask run
  7. Follow the flask URL to perform CRUD operations on the database or do it through another instance of Command Interpreter with CURL.

  8. Run deactivate to exit venv.


License

This project is licensed under the MIT License - see the LICENSE.md file for details


Acknowledgment