Activate the virtualenv
Not required if it is already activated. In my case, I am running this from another Termnial (Optional)
ip-192-168-1-104:fastapi-kickstart-guide hygull$ source ../venv-fastapi-kickstart/bin/activate
(venv-fastapi-kickstart) ip-192-168-1-104:fastapi-kickstart-guide hygull$
List down the files
(venv-fastapi-kickstart) ip-192-168-1-104:fastapi-kickstart-guide hygull$ ls
LICENSE README.md docs main.py requirements.txt
(venv-fastapi-kickstart) ip-192-168-1-104:fastapi-kickstart-guide hygull$
Run the server
uvicorn main:app --reload --port 9000
(venv-fastapi-kickstart) ip-192-168-1-104:fastapi-kickstart-guide hygull$ uvicorn main:app --reload --port 9000
INFO: Will watch for changes in these directories: ['/Users/hygull/Projects/Python/Django/AIPALETTE/FORESIGHT_ENGINE_PROJ/prod/fastapi-kickstart-guide']
INFO: Uvicorn running on http://127.0.0.1:9000 (Press CTRL+C to quit)
INFO: Started reloader process [26217] using StatReload
INFO: Started server process [26220]
INFO: Waiting for application startup.
INFO: Application startup complete.