Database Lab course project
- Flask is a micro web framework written in Python and based on the Werkzeug toolkit and Jinja2 template engine.
- Flask is called a micro framework because it does not require particular tools or libraries. It has no database abstraction layer, form validation, or any other components where pre-existing third-party libraries provide common functions. However, Flask supports extensions that can add application features as if they were implemented in Flask itself. Extensions exist for object-relational mappers, form validation, upload handling, various open authentication technologies and several common framework related tools. Extensions are updated far more regularly than the core Flask program.
This project is done in python and mysql. Used flask framework to connect the database and the html.
Backend - Python, Mysql
Frontend - Html, CSS
Anaconda Navigator - Helps to create the environment required
Xampp - To create local mysql database
In anaconda navigator select environments create a new environment install pip, flask, flask-login,flask-wtf, wtforms, mysql-connector-python, mysql-python.
Download Xampp and install.
- Start the environment in the cmd (should be selected from anaconda naviagtor, you can press the play button beside the environment name)
by typing
activate your_environment_name. - Open Xampp and start the mysql server.
- Do to the directry where app.py is, then type
python app.py.
Note: If you try to run this project make sure to import the database which was uploaded.
For flask:
You can refer youtube videos for learning how to use flask.