-
Clone GitHub repository (if you haven't done so already)
- Press the Code button then copy the URL
-
Install poetry
- What is poetry? Poetry is a package manager for python that keeps track of the needed packages and dependencies for those packages so you can install them easily.
- Install in vscode terminal (open using Ctrl + `) by running:
(Invoke-WebRequest -Uri https://install.python-poetry.org -UseBasicParsing).Content | python - - Then add this to your Path environment variable so you can use poetry:
%USERPROFILE%\AppData\Roaming\Python\Scripts - Check installation and correct environment variable configuration using
poetry --version
-
Create a virtual environment with:
python -m venv venv- This will create your very own venv folder where stuff like libraries and Scripts will go
-
Activate it:
venv\Scripts\activate- You might need to run
Set-ExecutionPolicy RemoteSigned -Scope CurrentUser -Forceif running scripts is disabled - You should see (venv) before the working directory showing that your virtual environment is activated
- You might need to run
-
Install all the dependencies (one time thing):
poetry install- This installs all the packages and dependencies in pyproject.toml and poetry.lock to your virtual environment. They are stored in
venv\Lib\site-packages.
- This installs all the packages and dependencies in pyproject.toml and poetry.lock to your virtual environment. They are stored in
-
Run the app:
python main.py- When you make changes, the server will automatically restart with the new changes.
- If you want to add a new package, use
poetry add [package name] - Other users will need to re-run
poetry installin order to locally install the package on their computer