Skip to content

Latest commit

 

History

4 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Campus‑Coffee Demo API

A tiny FastAPI project that showcases the Router → Controller → Service → Model architecture pattern, using SQLite + SQLModel.

Purpose: Use this repo for the Session 1 presentation (walk‑through of the code) and then let participants build a different API (Dartmouth Places) in Session 2 using the same structure.


📚 Table of Contents


Prerequisites

  • Python 3.10 or newer (the code uses the | union syntax).
  • git (to clone the repo).
  • A terminal / command prompt.
  • UV installed

Setup & Installation

# 1️ Clone the repo (or create the folder structure manually)
git clone https://github.com/your‑org/devcourse-api-demo.git
cd devcourse-api-demo

# 2️ Initialize the environment and install dependencies
uv sync

# 3 Run the server
uv run fastapi dev

About

Repo to demo how to build simple FastAPI API

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages