A practical Todo Restful API with Python FastAPI
- Python is installed on your machine
- A Postgresql database
> mkdir myfastapi
> cd myfastapi
> git clone https://github.com/sieunhantanbao/fastapi-todo.git
> cd fastapi-todo
Create virtual environment
> py -3 -m venv .venv
> .venv\Scripts\activate
> pip install -r requirements.txt
> cd app
DB_ENGINE=postgresql
DB_HOST=
DB_USERNAME=
DB_PASSWORD=
DB_PORT=
DB_NAME=sample.db
JWT_SECRET=
JWT_ALGORITHM=HS256
> alembic upgrade head
> uvicorn main:app --reload