Serious Company is a website built from scratch for an academic project on lesson NTUA-DATABASES at Nation Technical University of Athens. The website contains random data simulating market database.
- mysql 8.0.19
- flask 1.1.2
- mysql_connector 2.2.9
- numpy 1.17.4
- pandas 0.25.3
- At first, initialize a mysql database at either a localhost or a server
- Then, run the folowing command in terminal, using your credentials in order to connect in mysql host:
$ mysql -h "server-name" -u "your_username" -p "your_password"
- AlexJohnChris.sql to create the database.
- indexes.sql to create the indexes.
- view1.sql and view2.sql to create the views.
- past_price_trigger.sql to create the trigger for auto-update past prices.
- addStores.sql to add all the stores.
- Run,
$ git clone https://github.com/AlexandrosKyriakakis/DataBase.git
$ cd DataBase
$ git clone https://github.com/AlexandrosKyriakakis/MarketDataset.git
- Add your database credentials at the top '****' of each of the following files,
- Run the following strictly at this order,
$ pip3 install -r requirements.txt
$ python3 ./addData/addCustomersAndPhone.py
$ python3 ./addData/addProductsPastPricesHas.py
$ python3 ./addData/addTransactionsBought.py
- Now, that the database is full with random generated data, start the back-end server to finish the installation,
$ python3 server_guest.py
- Open your favorite browser and type http://localhost:8587/ to preview the website.
Queries to construct database,
Here we show all the queries used in the site at each page,
- SearchPerCondition for page /search
- CustomerData for pages /customers_visit_data and /customers
- ProductData for pages at Product Data
- Views for pages /customer_info and /sales_category_store
- EditData for pages at Edit Data
Explaining in Greek language how to use our Site.
https://www.youtube.com/watch?v=YaeIKbiKvYA&feature=youtu.be
This project uses MIT license