-
First, get the platform and database in place
git clone git@github.com:qim-center/qim-platform.gitflask db initflask db migrateflask db upgrade
-
Create your branch from prod
git checkout devgit pullgit branch your-branch-namegit checkout your-branch-namegit status
That should give you:
On branch your-branch-name nothing to commit, working tree clean -
Start the FastAPI using uvicorn
uvicorn main:app --reload
This should give you something like:
(dev) fima@pop-os ~/qim-platform $ uvicorn main:app --reload INFO: Will watch for changes in these directories: ['/home/fima/qim-platform'] INFO: Uvicorn running on http://127.0.0.1:8000 (Press CTRL+C to quit) INFO: Started reloader process [507195] using StatReload [2023-11-21 10:42:36] <Flask> (INFO) → Starting Flask [2023-11-21 10:42:36] <FastAPI> (INFO) → Starting FastAPI INFO: Started server process [507197] INFO: Waiting for application startup. INFO: Application startup complete.
The server local version of the server can be accessed at the provided address, http://127.0.0.1:8000 in this case.
Any changes in the code will be automatically updated because of the --reload flag.