-
Notifications
You must be signed in to change notification settings - Fork 0
Build & Run
Antonio Kasabov edited this page Jun 24, 2021
·
16 revisions
- Python 3.x (https://www.python.org/downloads/)
- MySQL database (https://www.mysql.com/downloads/)
- PyYAML (https://pypi.org/project/PyYAML/)
- Google Chrome and Chromedriver (not mandatory, needed only for the tests)
- Clone the repository on your machine.
- In the folder, where the project is, create a file and name it "db.yaml". Format the file in exactly this way:
mysql_host: 'localhost'
mysql_user: '*your user*'
mysql_password: '*your pasword*'
mysql_db: 'SportsEventer'
And then save it.
-
Copy the code that is in the 'database.sql' file and paste it in a MySQL Terminal.
-
Install all the libraries from the 'requirements.txt' file.
-
Open up a Terminal and execute the following commands:
(LINUX)
export FLASK_APP
flask run
(WINDOWS)
python -m flask run
If everything goes right, a link to your localhost should appear in the Terminal.