Here, we have created the database for an online antique store and host it on azure. Also, we have created a dashboard for visulaizing the data in the form of graphs and dashboard allows the user to run the queries easily and efficiently (using the GUI)
URL of the website - https://antique-store-dashboard.herokuapp.com/
Just follow the below steps in order to run this web app offline on your computer.
- Clone the repository on the system.
- Open the terminal and go to the destination of the cloned file.
- Type "cd website" in the terminal.
- Enter "pip install -r requirements.txt"
- Run "python app.py" from your terminal.
Here you go, the application is running on your terminal.
Just open the displayed URL (on terminal) on your web browser.
Website - https://antique-store-dashboard.herokuapp.com/ main page looks something like the below image.
We have the following tabs:
- Home: displays several graphical representation of the data.
- Categories: displays categories table of the database.
- Users: displays Users table of the database.
- Employees: displays Employees table of the database.
- Sessions: displays Sessions table of the database.
- Select: allows to write queries in interactive manner (allows to select table and attributes with the help of GUI) and has features like =, >, < and sort-by.
-
PYTHON is the man programming language that this web app is built on. We are using sql-connector-python to connect our database with the python and run the queries in python.
-
Cascading style sheets (CSS) and bootstrap has also been used for the frontend.
Brief description of role of each file in the repo.
- Others : responsible for creating all the iframes for all the graphs used in the website.
- website
Contains the full website that has been hosted on heroku - https://antique-store-dashboard.herokuapp.com/- static - contains images of data analysis
- templates - contains .html file
- venv - for creating virtual env named "venv"
- Procfile - so heroku can detect that it's an app
- app.py - for setting up flask (backend)
- requirements.txt - contains names of all the dependencies required to rub the app
- README.md
- database_doc.pdf: Information regarding the database modelling
All the information regarding the database is present @ database_doc.pdf