- Git Clone:
git clone https://github.com/ajerni/fastapi-redis-crud.git
- Move to the new directory:
cd fastapi-redis-crud
- Create Virtual Environment:
python -m venv env
- Activate Virtual Environment:
source env/bin/activate
- Install Dependencies:
pip install -r requirements.txt
- Save your Redis database password:
echo "redis_key=xyz" > .env
(replace xyz with your database password) - Run Application:
uvicorn main:app --reload
- requirements.txt created from
pip freeze
before deployment to Vercel: https://fastapi-redis-crud.vercel.app/ - Deployed to production. Run
vercel --prod
to overwrite later.