required python3.10
git clone https://github.com/mejomba/m89_fastapi_project.git
cd m89_fastapi_project
note: you need install virtualenv package on your global python interpreter by
pip install virtualenv
or pip3 install virtualenv
create env for project: virtualenv env --python=python3.10
also you can use any other python environment manager like pipenv
condaenv
poetry
-
- on linux using
source venv/bin/activate
- on window using
venv/Scripts/activate
- on linux using
-
pip install -r requirement.txt
from commandline (terminal) use cd v2
go to v2
directory and run python manage.py --createsuperuser <username>
follow the instruction to create superuser like following image
open v2/main.py
file and click on run button
or
from commandline (terminal) go to v2
directory and run uvicorn main:app --reload