Skip to content

Introduction

FastSoyAdmin is an out-of-the-box full-stack admin template. The frontend is built on SoybeanAdmin with Vue3, Vite7, TypeScript, Pinia and UnoCSS. The backend uses FastAPI, Pydantic v2 and Tortoise ORM, accelerated by Redis caching.

Features

  • Full-Stack Tech Stack: Backend FastAPI + Pydantic v2 + Tortoise ORM, Frontend Vue3 + Vite7 + TypeScript + Pinia + UnoCSS
  • Complete RBAC Permission System: Role-based access control at menu, API and button level
  • Redis Cache Acceleration: Integrated fastapi-cache2 + Redis for fast API responses
  • Clean Project Structure: pnpm monorepo management, backend layered architecture (Router → Controller → CRUD/Model)
  • Strict Code Standards: Frontend ESLint + oxlint; Backend Ruff + Pyright
  • Full TypeScript Coverage: Strict type checking across the stack
  • Rich Theme Configuration: Multiple theme schemes deeply integrated with UnoCSS
  • Internationalization: vue-i18n multi-language support (Chinese / English)
  • Rich Pages & Components: Built-in error pages, ECharts, AntV, VChart visualizations
  • Mobile Responsive: Responsive layout with mobile support
  • Docker One-Click Deploy: Nginx + FastAPI + Redis via Docker Compose

Tech Stack

Backend

TechnologyVersionDescription
Python>= 3.12Runtime
FastAPI>= 0.121Web framework
Pydanticv2Data validation & serialization
Tortoise ORM>= 0.25Async ORM
Aerich>= 0.9Database migrations
Redis-Cache (fastapi-cache2)
Argon2-Password hashing
PyJWT-JWT tokens

Frontend

TechnologyVersionDescription
Vue3.5Frontend framework
Vite7Build tool
TypeScript5.9Type system
Naive UI2.44Component library
Pinia3State management
UnoCSS66+Atomic CSS
Alova-HTTP client
Elegant Router0.3File routing
vue-i18n11Internationalization

Architecture

┌─────────────────────────────────────────────────┐
│                    Nginx (:1880)                 │
│         Static assets + /api/* proxy             │
├─────────────────────┬───────────────────────────┤
│   Frontend (:9527)  │     Backend (:9999)        │
│   Vue3 + Vite7      │     FastAPI                │
│                     │                            │
│   Views             │     Router (api/v1/)       │
│     ↓               │       ↓                    │
│   Store (Pinia)     │     Controller             │
│     ↓               │       ↓                    │
│   Service (Alova)   │     CRUD / Model           │
│     ↓               │       ↓                    │
│   HTTP Request ─────┼──→  API Endpoint           │
│                     │       ↓                    │
│                     │     SQLite / Redis          │
└─────────────────────┴───────────────────────────┘

基于 MIT 协议发布