feat: establish Rust teaching feedback API

Add the Axum and PostgreSQL service for profiles, defaults, and feedback records, including migrations, OpenAPI documentation, and development identity handling for version 0.1.0.
This commit is contained in:
2026-07-15 15:36:51 +08:00
commit f1e5fd8793
12 changed files with 3830 additions and 0 deletions

9
.env.example Normal file
View File

@@ -0,0 +1,9 @@
# The API starts without this variable, but data endpoints return HTTP 503.
# DATABASE_URL=postgres://username:password@hostname:5432/teaching_feedback?sslmode=require
HOST=127.0.0.1
PORT=8080
DATABASE_MAX_CONNECTIONS=5
# A single development origin. Leave unset to disable CORS middleware.
# CORS_ALLOWED_ORIGIN=https://servicewechat.com