- 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 freezebefore deployment to Vercel: https://fastapi-redis-crud.vercel.app/ - Deployed to production. Run
vercel --prodto overwrite later.