Skip to content

Latest commit

 

History

History
32 lines (23 loc) · 695 Bytes

README.md

File metadata and controls

32 lines (23 loc) · 695 Bytes

FastAPI Skeleton

This repository contains a skeleton FastAPI app.

Requirements

Python 3.6+

Installation

Install the required packages in your local environment (ideally virtualenv, conda, etc.).

pip install -r requirements.txt

Setup

  1. Duplicate the .env.example file and rename it to .env

  2. In the .env file configure the API_KEY entry. The key is used for authenticating our API.
    A sample API key can be generated using Python REPL:

import uuid
print(str(uuid.uuid4()))

Run It

  1. Start your app with:
uvicorn fastapi_skeleton.main:app --reload
  1. Go to http://localhost:8000/docs.