Project in postgres for the DSE 201 course
To setup app local enviroment install docker and run the following command on the root directory of the project, this will create containers for mysql and phpmyadmin:
docker-compose -f app.yaml up
Clone the repository or download the .zip file and extract it on the desired directory
Create a virtual environment with the command:
python -m venv venv
Activate the created enviroment:
source venv/bin/activate
Install the requirements for the project
pip install -r requirements.txt
python db/build.py settings.json build_schemas
Create csv files
python db/csv_data/generate_data.py
Insert with alchemy
python db/build.py settings.json insert_alchemy
Insert query one by one
python db/build.py settings.json insert_data
python db/m2/cats.py settings.json
python db/m2/sales_cube.py settings.json
python db/m3/cats.py settings.json
python db/m3/sales_cube.py settings.json
python db/m4/cats.py settings.json
python db/m4/sales_cube.py settings.json
For database modeling use sqldbm