Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

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。

Awesome Lists containing this project

README

        

Welcome to SQLOJ 👋

SQLOJ


Version

Documentation


License: MIT

> 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.