Skip to content

Build & Run

Antonio Kasabov edited this page Jun 24, 2021 · 16 revisions

Building & Running the Project on Localhost

Requirements:

  1. Clone the repository on your machine.
  2. 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.

  1. Copy the code that is in the 'database.sql' file and paste it in a MySQL Terminal.

  2. Install all the libraries from the 'requirements.txt' file.

  3. 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.

Clone this wiki locally