115 lines
2.7 KiB
JSON
115 lines
2.7 KiB
JSON
{
|
|
"template": {
|
|
"name": "FastAPI-Vue3 Full-Stack Template",
|
|
"version": "1.0.0",
|
|
"description": "A production-ready full-stack template with FastAPI backend and Vue 3 frontend",
|
|
"author": "Your Name",
|
|
"license": "MIT"
|
|
},
|
|
|
|
"features": {
|
|
"backend": {
|
|
"framework": "FastAPI",
|
|
"database": "PostgreSQL/SQLite",
|
|
"authentication": "JWT",
|
|
"fileUpload": true,
|
|
"aiIntegration": true,
|
|
"pdfProcessing": true
|
|
},
|
|
"frontend": {
|
|
"framework": "Vue 3",
|
|
"uiLibrary": "Element Plus",
|
|
"stateManagement": "Pinia",
|
|
"buildTool": "Vite",
|
|
"router": true
|
|
}
|
|
},
|
|
|
|
"configurable": {
|
|
"projectName": {
|
|
"description": "Your new project name",
|
|
"default": "my-app",
|
|
"placeholder": "my-awesome-app"
|
|
},
|
|
"projectDisplayName": {
|
|
"description": "Display name for your application",
|
|
"default": "My Application",
|
|
"placeholder": "My Awesome App"
|
|
},
|
|
"databaseName": {
|
|
"description": "Database name",
|
|
"default": "myapp_db",
|
|
"placeholder": "your_database_name"
|
|
},
|
|
"apiPort": {
|
|
"description": "Backend API port",
|
|
"default": 8888,
|
|
"placeholder": 8888
|
|
},
|
|
"frontendPort": {
|
|
"description": "Frontend development server port",
|
|
"default": 3000,
|
|
"placeholder": 3000
|
|
},
|
|
"domainName": {
|
|
"description": "Production domain (optional)",
|
|
"default": "",
|
|
"placeholder": "your-domain.com"
|
|
}
|
|
},
|
|
|
|
"replacements": {
|
|
"backend": [
|
|
{
|
|
"file": "backend/main.py",
|
|
"patterns": [
|
|
{"find": "wordmaster", "replace": "{{databaseName}}"},
|
|
{"find": "学习助手 Pro", "replace": "{{projectDisplayName}}"}
|
|
]
|
|
},
|
|
{
|
|
"file": "backend/.env.example",
|
|
"patterns": [
|
|
{"find": "wordmaster", "replace": "{{databaseName}}"},
|
|
{"find": "8888", "replace": "{{apiPort}}"}
|
|
]
|
|
}
|
|
],
|
|
"frontend": [
|
|
{
|
|
"file": "frontend/package.json",
|
|
"patterns": [
|
|
{"find": "wordmaster-frontend", "replace": "{{projectName}}-frontend"}
|
|
]
|
|
},
|
|
{
|
|
"file": "frontend/src/config/index.js",
|
|
"patterns": [
|
|
{"find": "8888", "replace": "{{apiPort}}"}
|
|
]
|
|
},
|
|
{
|
|
"file": "frontend/index.html",
|
|
"patterns": [
|
|
{"find": "学习助手 Pro", "replace": "{{projectDisplayName}}"}
|
|
]
|
|
}
|
|
]
|
|
},
|
|
|
|
"cleanupFiles": [
|
|
"backend/wordmaster.db",
|
|
"backend/uploads/*",
|
|
"backend/__pycache__",
|
|
"frontend/node_modules",
|
|
"frontend/dist",
|
|
".git"
|
|
],
|
|
|
|
"keepExampleFiles": [
|
|
"backend/.env.example",
|
|
"TEMPLATE_GUIDE.md",
|
|
"template.config.json"
|
|
]
|
|
}
|