This repository contains a skeleton FastAPI app.
Python 3.6+
Install the required packages in your local environment (ideally virtualenv, conda, etc.).
pip install -r requirements.txt-
Duplicate the
.env.examplefile and rename it to.env -
In the
.envfile configure theAPI_KEYentry. The key is used for authenticating our API.
A sample API key can be generated using Python REPL:
import uuid
print(str(uuid.uuid4()))- Start your app with:
uvicorn fastapi_skeleton.main:app --reload- Go to http://localhost:8000/docs.