Initial commit

This commit is contained in:
Wang Keyi 2023-04-26 20:28:13 +08:00
commit 6cab0e8e9b
12 changed files with 132 additions and 0 deletions

8
.idea/.gitignore vendored Normal file
View File

@ -0,0 +1,8 @@
# 默认忽略的文件
/shelf/
/workspace.xml
# 基于编辑器的 HTTP 客户端请求
/httpRequests/
# Datasource local storage ignored files
/dataSources/
/dataSources.local.xml

21
.idea/FlaskProject.iml Normal file
View File

@ -0,0 +1,21 @@
<?xml version="1.0" encoding="UTF-8"?>
<module type="PYTHON_MODULE" version="4">
<component name="Flask">
<option name="enabled" value="true" />
</component>
<component name="NewModuleRootManager">
<content url="file://$MODULE_DIR$">
<excludeFolder url="file://$MODULE_DIR$/venv" />
</content>
<orderEntry type="inheritedJdk" />
<orderEntry type="sourceFolder" forTests="false" />
</component>
<component name="TemplatesService">
<option name="TEMPLATE_CONFIGURATION" value="Jinja2" />
<option name="TEMPLATE_FOLDERS">
<list>
<option value="$MODULE_DIR$/../FlaskProject\templates" />
</list>
</option>
</component>
</module>

View File

@ -0,0 +1,17 @@
<component name="InspectionProjectProfileManager">
<profile version="1.0">
<option name="myName" value="Project Default" />
<inspection_tool class="DuplicatedCode" enabled="true" level="WEAK WARNING" enabled_by_default="true">
<Languages>
<language minSize="157" name="Python" />
</Languages>
</inspection_tool>
<inspection_tool class="PyPep8NamingInspection" enabled="true" level="WEAK WARNING" enabled_by_default="true">
<option name="ignoredErrors">
<list>
<option value="N802" />
</list>
</option>
</inspection_tool>
</profile>
</component>

View File

@ -0,0 +1,6 @@
<component name="InspectionProjectProfileManager">
<settings>
<option name="USE_PROJECT_PROFILE" value="false" />
<version value="1.0" />
</settings>
</component>

4
.idea/misc.xml Normal file
View File

@ -0,0 +1,4 @@
<?xml version="1.0" encoding="UTF-8"?>
<project version="4">
<component name="ProjectRootManager" version="2" project-jdk-name="Python 3.11 (FlaskProject) (2)" project-jdk-type="Python SDK" />
</project>

8
.idea/modules.xml Normal file
View File

@ -0,0 +1,8 @@
<?xml version="1.0" encoding="UTF-8"?>
<project version="4">
<component name="ProjectModuleManager">
<modules>
<module fileurl="file://$PROJECT_DIR$/.idea/FlaskProject.iml" filepath="$PROJECT_DIR$/.idea/FlaskProject.iml" />
</modules>
</component>
</project>

6
.idea/vcs.xml Normal file
View File

@ -0,0 +1,6 @@
<?xml version="1.0" encoding="UTF-8"?>
<project version="4">
<component name="VcsDirectoryMappings">
<mapping directory="$PROJECT_DIR$" vcs="Git" />
</component>
</project>

32
README.md Normal file
View File

@ -0,0 +1,32 @@
# 校园寝室管理系统的分析与设计
## 项目框架
预期使用Flask作为Web服务器接入Mysql服务器进行数据持久化存储使用Echart进行数据可视化表现
## 项目背景
课程要求制作的校园寝室管理系统
## 项目成员
王可奕 2020210682
## 项目预期实现的功能和模块
### 1.寝室管理
- 寝室信息的增删改查等调整清空
- 寝室信息的导入导出
- 寝室信息的统计和可视化
- 寝室信息的查询
- 用电充值等等信息管理
- 暂定......
### 2.人员管理
- 寝室楼对应工作人员的管理
- 考勤工作内容等等
- 暂定......
### 3.寝室楼管理以及对应的活动与事件的管理
- 寝室楼检查、验收、维修、报修等活动的管理
- 暂定......
### 4.学生管理
- 寝室相关学生信息,对接学校的学生数据库
- 暂定......
### 5.系统运维层
- 登录管理
- 用户管理
- 权限管理
- 暂定......
### 6.财务管理
- 开销等

12
app.py Normal file
View File

@ -0,0 +1,12 @@
from flask import Flask
app = Flask(__name__)
@app.route('/')
def hello_world(): # put application's code here
return 'Hello World!'
if __name__ == '__main__':
app.run()

1
requirements.txt Normal file
View File

@ -0,0 +1 @@
Flask~=2.2.3

1
开发报告.md Normal file
View File

@ -0,0 +1 @@
v0.0.1 实现基本的框架运行,实现浏览器访问

View File

@ -0,0 +1,16 @@
# 第一次开发记录会议内容
## 1. 确定系统框架
预计使用Flask框架作为项目的基本实现框架使用Bootstrap Studio作为前端项目的开发工具模板渲染引擎为Flask框架自带的jinja2。考虑到结构化的数据预计使用MySQL进行数据的持久化存储。
## 2. 补充功能
增加无序列表,展示最新通知
通知对应如下:
1. 校园最新通知(调用爬虫读取学校官网的最新通知)
2. 寝室相关的最新通知
## 3. 数据库相关
严格按照第三范式的规范设计,避免数据堆积和冗余,目前设计大纲包括