This repository contains a REST API built on FastAPI and using Okta as an authorization server.
Using Docker
- Build the Dockerfile:
docker build -t fastapi . - Run it locally:
docker run --rm -it --name fastapi -v $(pwd)/main.py:/app/main.py -p 8000:80 fastapi /start-reload.sh - View the app at http://localhost:8000/
Using Local Python/Virtual Env
- Install dependencies:
pip install -r requirements.txt - Run the app with Uvicorn:
uvicorn main:app --reload - View the app at http://localhost:8000/