There are the requirements to have this project running. This project uses Python3, virtualenv, flask and MySQL.
- Install homebrew
- Install MySQL
brew services start mysql
mysql_sercure_installation
mysql -u root -p
- Install python3
brew install python3
- Install virtualenv
pip3 install virtualenv
- Install MySQL
sudo apt-get update
sudo apt-get install mysql-server
sudo mysql_secure_installation
- Install virtualenv
pip3 install virtualenv
TODO
- In the project repo, create a virtualenv pointing to your python3.
virtualenv RestaurantListEnv --python=[path to python3]
- Activate the environment with
source RestaurantListEnv/bin/activate
- Download the requirements with
pip install -r Requirements.txt
- Run the database setup scripts
./Scripts/setup-database.sh
- This script sets up a database with a test user for development.
- Start the application with
python3 wsgi.py
- Leave the virtural envrionment with
deactivate