feat: initial commit with Nuxt 3 student management system

- Add Nuxt 3 + Prisma + SQLite full-stack setup
- Add student CRUD API with batch import/export
- Add stats dashboard with gender/class distribution
- Add target community settings feature
- Add Docker deployment support (Dockerfile + docker-compose)
- Add README with development and deployment instructions
This commit is contained in:
2026-03-21 02:00:55 +08:00
commit 05c33b1fe8
25 changed files with 15749 additions and 0 deletions

35
nuxt.config.ts Normal file
View File

@@ -0,0 +1,35 @@
export default defineNuxtConfig({
devtools: { enabled: true },
nitro: {
preset: "node-server",
},
modules: ["@nuxtjs/tailwindcss"],
css: ["~/assets/css/main.css"],
app: {
baseURL: "/",
cdnURL: "/",
server: {
port: 3000,
host: "0.0.0.0",
},
head: {
title: "学生数据管理系统",
meta: [
{ charset: "utf-8" },
{ name: "viewport", content: "width=device-width, initial-scale=1" },
{ name: "description", content: "幼儿园学生数据管理系统" },
],
},
},
compatibilityDate: "2024-01-01",
runtimeConfig: {
public: {
apiBase: process.env.API_BASE || "/api",
},
},
});