GitHub Repository
You can find the project source code on GitHub.
Environment Setup
Install FastAPI andupstash-redis
.
Database Setup
Create a Redis database using Upstash Console or Upstash CLI and export theUPSTASH_REDIS_REST_URL
and UPSTASH_REDIS_REST_TOKEN
to your environment.
API Setup
Createmain.py
:
main.py
Run
Run the app locally withfastapi dev main.py
, check http://127.0.0.1:8000/