Skip to content
Discussion options

You must be logged in to vote

It's described here in docs: https://github.com/fastapi/full-stack-fastapi-template/blob/master/development.md#local-development
In docs it's assumed you have already activated venv and installed dependencies

So, basically:

  1. activated venv and installed dependencies (do it once you created project)
# assuming you are in the root directory of the project
cd backend
uv sync
source .venv/bin/activate
cd ..
  1. Run backend containers, stop container with fastapi app, run fastapi app locally (on host machine)
# assuming you are in the root directory of the project
docker compose watch
docker compose stop backend
cd backend
fastapi dev app/main.py

Replies: 6 comments 6 replies

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
2 replies
@DanielGuarnizo
Comment options

@machov
Comment options

Comment options

You must be logged in to vote
3 replies
@carlos-dz
Comment options

@machov
Comment options

@carlos-dz
Comment options

Comment options

You must be logged in to vote
1 reply
@auh83
Comment options

Comment options

You must be logged in to vote
0 replies
Answer selected by YuriiMotov
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
8 participants
Converted from issue

This discussion was converted from issue #1101 on March 18, 2024 20:59.