Skip to content

Latest commit

 

History

History
 
 

fastapi

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 
 
 

README.md

Flask / SQLAlchemy

Requirements

To manage your demo's dependencies you should install poetry.

curl -sSL https://install.python-poetry.org | python3 -

Already met problems

  • If you're having SSL issue with Python while installing poetry, visit this link: https://matduggan.com/til-python-3-6-and-up-is-broken-on-mac/
  • Make sure poetry is in your $PATH, sometimes on mac there is conflict between python installed graphically and installed with brew. You can use these commands to help you to find the problems
which python
which python3
which python3.10
echo "PATH=$PATH;~/Library/Application Support/pypoetry/venv/bin" >> ~/.zshrc  # this is default installation path for poetry on mac

(Optional) Auto-load .env files with poetry

poetry self add poetry-dotenv-plugin

create a virtual env

python -m venv venv  # the last 'venv' is the relative path where you want your virtual env

activate it

source venv/bin/activate  # adapt venv with the path previously used

Install the dependencies

poetry install

Init your database

poetry run poe init-db

Populate your database with fake data

poetry run poe populate-db

Run the server

poetry run poe runserver

Next step

The last needed step is to onboard the project on forestadmin