An open source application built using FastAPI.
-
Open the project directory in a terminal
cd project-name
-
Create a virtual environment:
using python3:
python3 -m venv venv
or if you don't have python3:
python -m venv venv
-
Run the virtual environment:
MacOS:
source venv/bin/activate
Windows:
source venv/Scripts/activate
Linux (i don't know, haven't tried):
source venv/???/activate
-
Check if it's running using following command:
which python
if everything is fine you are going to see a path for python in the virtual environment
-
Install dependencies:
pip install -r requirements.txt
-
Start the development server:
uvicorn main:app --port 8000 --reload
this command will run the program on 8000 port, don't change it, this port is hardcoded on the client-side