git clone https://github.com/jsoques/fastapi-user-admin-starter.git
cd fastapi-user-admin-starter
python -m venv venv
source venv/bin/activate
mkdir -p www/static
pip install fastapi[standard] sqlmodel pydantic-settings bcrypt pyjwt python-multipart
uvicorn main:app --reload --port 8888 --host 0.0.0.0You can now visit http://localhost:8888
Let's assume we will create a project directory called fastapi_htmx_demo
mkdir fastapi_htmx_demo
cd fastapi_htmx_demoWe need to create a Python 3 virtual environment (assuming the ve folder will be venv:
python3 -m venv venvLet's activate the virtual environment:
source venv/bin/activateor
. venv/bin/activateYour console prompt should indicate that the ve is active with the text 'venv'
Let's check for updates (usually only pip should be installed):
pip list -oupdate if necessary:
pip install --upgrade pipNow install the necessary packages:
pip install fastapi[standard] sqlmodel pydantic-settings bcrypt pyjwt python-multipart(assuming port 8888):
uvicorn main:app --reload --port 8888 --host 0.0.0.0