git clone https://github.com/COSC381-2024Fall/final-project-LongNguyenThanhLe
cd final-project-LongNguyenThanhLepython3 -m venv .venv
source .venv/bin/activate
pip3 install -r requirements.txt
.venvis in.gitignore. Please try to use.venvfor the virtual environment name. Do NOT commit the virtual environment to the repository.
At this point you should be good to go. You can run the program while sourced inside of the virtual environment. To exit the virtual environment, simply type deactivate. Make sure your IDE is set up to use the virtual environment as well. Visual Studio Code should automatically detect the virtual environment and use it.
To get an OpenWeatherMap API key, you can: Go to the https://openweathermap.org/ You can find your API keys in your account dashboard by:
- Signing in to your OpenWeather account
- Going to your account name in the top-right corner
- Clicking on "My API" in the drop-down menu
To run program, first you need to paste your api key to the class main.py, line 6 Then you can click to terminal and type in "python3 main.py"
- Install pytest:
pip install pytest- Run the tests:
pytest