Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/ptyin/sqloj
集成SQL语句测评和学生管理的数据库系统实验平台,可用于毕设和大作业,欢迎提issue和pr。
https://github.com/ptyin/sqloj
oj sql
Last synced: 2 months ago
JSON representation
集成SQL语句测评和学生管理的数据库系统实验平台,可用于毕设和大作业,欢迎提issue和pr。
- Host: GitHub
- URL: https://github.com/ptyin/sqloj
- Owner: ptyin
- License: mit
- Created: 2021-06-02T02:38:40.000Z (over 3 years ago)
- Default Branch: main
- Last Pushed: 2022-10-17T11:02:17.000Z (about 2 years ago)
- Last Synced: 2024-11-01T08:42:19.812Z (2 months ago)
- Topics: oj, sql
- Language: JavaScript
- Homepage:
- Size: 29.1 MB
- Stars: 15
- Watchers: 3
- Forks: 1
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
Welcome to SQLOJ 👋
> A lightweight database system experimental platform that integrates an OJ of SQL and a variety of practical functionalities.
### ✨ [Demo](http://101.34.91.143:8080/)
## Install
```sh
docker pull ptyin/sqloj
```## Usage
```sh
docker run -d -p 80:80 -v :/data/db -v :/data/configdb -v :/var/lib/sqloj ptyin/sqloj:latest
```where \\\ denotes the data persistence directories path in your server. e.g.,
In Windows:
```shell
docker run -d -p 80:80 -v D:\SQLOJ\mongodb\data:/data/db -v D:\SQLOJ\mongodb\config:/data/configdb -v D:\SQLOJ\sqlite:/var/lib/sqloj --name test ptyin/sqloj:latest
```In Linux:
```shell
docker run -d -p 80:80 -v /opt/SQLOJ/mongodb/data:/data/db -v /opt/SQLOJ/mongodb/config:/data/configdb -v /opt/SQLOJ/sqlite:/var/lib/sqloj --name test ptyin/sqloj:latest
```## Run tests
```sh
npm run test
```## Functionality
### Module Design
![modules](doc/images/modules.png)
### User Management
#### User Role
- teacher
- Default teacher username: admin
- Default teacher password: tsxt-adm1n
- student#### Login Panel
![login](doc/images/login.png)
### Teacher Example Page
#### Publish an assignment
![addAssignment](doc/images/addAssignment.png)
#### Add questions in a certain assignment
![addQuestion](doc/images/addQuestion.png)
#### Upload a database
![addDatabase](doc/images/addDatabase.png)
### Student Example Page
#### View question list
![questions](doc/images/questions.png)
#### Review uploaded records
![records](doc/images/records.png)
Status might be (RUNNING/AC/WA/RE/TLE)。
#### Check specific information in a record
![recordDetail](doc/images/recordDetail.png)
## Author
👤 **Peter Yin**
* Website: http://ptyin.asia/
* Github: [@PTYin](https://github.com/PTYin)## Show your support
Give a ⭐️ if this project helped you!
## 📝 License
Copyright © 2021 [Peter Yin](https://github.com/PTYin).
This project is [MIT](https://opensource.org/licenses/MIT) licensed.