Quick and dirty, so 👂 can learn to code.
Project based on fastapi-realworld-example-app.
- Install Python
Download it from https://www.python.org/ and install.
It requires version 3.10!
Make sure that all the required modules is installed using the following pip syntax:"
pip install cleo tomlkit poetry.core requests cachecontrol cachy html5lib pkginfo virtualenv lockfile pexpect shellingham
- Install Poetry
Make sure that Python installation directory is in your system path.
Run the following script using PowerShell:
(Invoke-WebRequest -Uri https://raw.githubusercontent.com/python-poetry/poetry/master/get-poetry.py -UseBasicParsing).Content | python -
- Install dependencies
Configure Poetry to create the virtual environment inside the project directory. It will make easier to work with VSCode:
poetry config virtualenvs.in-project true
Use Poetry to install the dependencies:
poetry install
- Create the environment configuration file
Create the file named as .env
with the following content:
APP_ENV=dev
DEBUG=True
SECRET_KEY=dev_secret
Enter the Poetry shell:
poetry shell
Start Uvicorn:
uvicorn app.main:app --reload
When the environment is properly configured, this project must run from Run / Start Debugging or by pressing F5 key.