https://github.com/songquanpeng/college-admin
一个极为简陋的教务管理系统. A toy administration system for college.
https://github.com/songquanpeng/college-admin
beginner-project bootstrap example expressjs nodejs
Last synced: 3 months ago
JSON representation
一个极为简陋的教务管理系统. A toy administration system for college.
- Host: GitHub
- URL: https://github.com/songquanpeng/college-admin
- Owner: songquanpeng
- License: mit
- Created: 2019-05-07T13:51:40.000Z (about 7 years ago)
- Default Branch: master
- Last Pushed: 2020-04-17T13:25:22.000Z (about 6 years ago)
- Last Synced: 2025-03-27T14:53:16.033Z (over 1 year ago)
- Topics: beginner-project, bootstrap, example, expressjs, nodejs
- Language: JavaScript
- Homepage:
- Size: 563 KB
- Stars: 0
- Watchers: 1
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Administration System for College
## Description
This is a simple administration system for college.
## TODO
+ [ ] Add an attribute "employment" for teacher :{"active","inactive"}
+ [ ] Automatically query after clicking the type button
## Feature
+ [x] Query, add, delete and modify data
+ [x] Sign up, log in and log out
+ [x] Get statistical data
+ [x] Permission control
+ [x] User management
+ [ ] Information collection
+ [ ] Message system
## Ejs Template
#### basic
+ [x] header ->Song
+ [x] navigation-bar ->Song
+ [x] footer ->Song
+ [x] login-dialog ->Song
+ [x] query ->Lee
+ [x] about ->Song
+ [ ] index ->Song
+ [x] insert ->Song
+ [x] statistic ->Lee
+ [x] message ->Song
+ [x] error ->Song
+ [x] 404 ->Song
#### student
+ [x] student-table ->Lee
+ [x] student-detail ->Song
+ [x] student-edit-dialog -> Lee
+ [x] student-delete-dialog -> Lee
#### teacher
+ [x] teacher-table
+ [x] teacher-detail
+ [x] teacher-edit-dialog
+ [x] teacher-delete-dialog
#### course
+ [x] course-table
+ [x] course-detail
+ [x] course-edit-dialog
+ [x] course-delete-dialog
#### cc-info
+ [x] cc-info-table
+ [x] cc-info-detail
+ [x] cc-info-edit-dialog
+ [x] cc-info-delete-dialog
#### message
+ [ ] message-list
+ [ ] message-detail
+ [ ] message-edit
#### advanced
+ [ ] discuss-area
+ [ ] comment-area
## API
### GET
+ index
+ logout
+ query
+ about
+ user
### POST
```
login {
userID : str
password : str
userType : str {student, teacher, admin}
}->Song
query/student {
Student
}->Lee
query/course {
Course
}->Lee
query/teacher {
Teacher
}->Lee
query/cc-info {
CourseChoosingInformation
}->Lee
update/student {
studentID
Student
}->Lee
update/course {
courseID
Course
}->Lee
update/teacher {
teacherID
Teacher
}->Lee
update/cc-info {
studentID
courseID
teacherID
chosenYear
CourseChoosingInformation
}->Lee
insert/student {
Student
}->Song
insert/course {
Course
}->Song
insert/teacher {
Teacher
}->Song
insert/cc-info {
CourseChoosingInformation
}->Song
statistics/students {
{
studentID
}
OR
{
major
courseID
}
}->Lee
detail {
type: student/teacher/admin/course/cc-info,
id:id/id:{studentID,courseID,teacherID,chosenYear}
}->Song
```
### DELETE
```
student {
studentID
}->Lee
course {
courseID
}->Lee
teacher {
teacherID
}->Lee
cc-info {
studentID
courseID
teacherID
chosenYear
}->Lee
```
## Model
```javascript
class User{
static checkCredential(id, password, userType, callback){callback(error, valid)};
static updatePassword(id, userType, newPassword, callback){callback(error)};
} //->Song
```
## Data Model
```
Student {
studentID
name
sex
entranceAge
entranceYear
major
password
}
Course {
courseID
name
teacherID
credit
grade
canceledYear
}
Teacher {
teacherID
name
sex
courses
password
}
CourseChoosingInformation {
studentID
courseID
teacherID
chosenYear
score
}
Admin {
adminID
password
name
}
```