53 lines
889 B
Markdown
53 lines
889 B
Markdown
# Test App Perfect
|
|
|
|
A test application with perfect structure
|
|
|
|
## 功能特性
|
|
|
|
- 基于Jingrow框架的现代化应用
|
|
- 支持云端和本地部署
|
|
- 符合最佳实践和未来趋势
|
|
|
|
## 安装
|
|
|
|
### 本地开发
|
|
|
|
```bash
|
|
# 安装依赖
|
|
pip install -r requirements.txt
|
|
|
|
# 运行开发服务器
|
|
python -m uvicorn main:app --port 8001
|
|
```
|
|
|
|
### 云端部署
|
|
|
|
```bash
|
|
# 安装到Jingrow Cloud
|
|
bench --site your-site install-app test_app_perfect
|
|
```
|
|
|
|
## PageTypes
|
|
|
|
*PageTypes will be created through Jingrow Cloud backend after app installation*
|
|
|
|
## 开发
|
|
|
|
### 添加新的PageType
|
|
|
|
1. 在 `test_app_perfect/test_app_perfect/pagetype/` 下创建新的PageType类
|
|
2. 在 `api/` 下添加对应的API处理函数
|
|
3. 在 `frontend/` 下添加前端组件
|
|
|
|
### API接口
|
|
|
|
- `/test_app_perfect/api/` - REST API接口
|
|
|
|
## 许可证
|
|
|
|
MIT License
|
|
|
|
## 联系方式
|
|
|
|
Test Publisher - test@example.com
|