Fastapi-AI-Production-Template

(β˜… 114)

Simple starter template for your ML/AI projects (uv package manager, RestAPI with FastAPI and Dockerfile support)

  • .dockerignore
  • .env.example
  • .gitignore
  • .pre-commit-config.yaml
  • .python-version
  • AGENTS.md
  • app.log
  • CLAUDE.md
  • Dockerfile
  • LICENSE
  • pyproject.toml
  • README.md
  • ruff.toml
  • skills-lock.json
  • uv.lock

# Installation Guide

1. Get the code
git clone https://github.com/wahyudesu/Fastapi-AI-Production-Template

Downloads the entire project code from GitHub to your computer.

cd Fastapi-AI-Production-Template

Moves into the project folder you just downloaded.

2. Docker

Easy Recommended
Prerequisites
  • Git Needed to download the project code from GitHub.
  • Docker Desktop Needed to build and run containers. Install it and keep it running in the background.
docker build -t fastapi-app .

Builds a runnable image based on the Dockerfile.

docker run -p 8000:80 fastapi-app

Runs the built image as an actual container.

<img src="https://img.shields.io/badge/Docker-%230db7ed.svg?style=flat&logo=Docker&logoColor=white" alt="Docker">

Type this command into your terminal and run it.

βœ… Run docker compose ps to check the containers are Up. If the README mentions a port, open http://localhost:PORT in your browser.

Pulled directly from this repo's README.

3. Python

Easy
Prerequisites
  • Git Needed to download the project code from GitHub.
  • Python 3 On Windows, be sure to check 'Add Python to PATH' during installation.
└── notebook/ # Jupyter notebooks for experiments

Type this command into your terminal and run it.

βœ… If it runs without errors and prints output in the terminal, it worked.

Pulled directly from this repo's README.

// repository documentation