Contents page
I. What is this project?
The aim of this project is to design a technical for a customer (OC pizza). This project is made for the project 6 from OpenClassrooms' Python course.
II. How to create and seed the database?
Be sure MySQL is installed and works.
Create a user with all privileges:
CREATE USER 'ocpizza'@'host' IDENTIFIED BY 'ocpizza' -- Replace 'host' by the host name on your server
GRANT ALL ON *.* TO 'ocpizza'@'ocpizza'; -- Don't forget to replace 'host'
Clone this current repository on your computer. Run :
git clone git@github.com:GuillaumeOj/DesignTechnicalSolution.git
or
git https://github.com/GuillaumeOj/DesignTechnicalSolution.git
Create a virtual environement in your directory:
virtualenv -p python3 env
or for PowerShell:
virtualenv -p $env:python3 env
Activate your virtual environement:
source env/bin/activate
or for PowerShell:
.env/scripts/activate.ps1
Install requirements.txt
:
pip install -r requirements.txt
Run seed.py
with the argument --structure
(or -s
):
python seed.py --structure
Run seed.py
with the argument --data
(or -d
):
python seed.py --data
Your database is seeded.