-
Clone the repository:
git clone https://github.com/con169/cs122a-project.git cd cs122a-project -
Create and activate virtual environment:
python -m venv venv source venv/bin/activate # macOS/Linux venv\Scripts\activate # Windows
-
Install dependencies:
pip install -r requirements.txt
-
Set up environment variables by creating a
.envfile with:MYSQL_HOST={your_host} MYSQL_USER={your_root} MYSQL_PASSWORD={your_password}
This works for testing the python script on your local server using python local.py {Arguments}
- Run using command line:
python project.py
If adding new dependencies:
pip freeze > requirements.txt