{"id":15345634,"url":"https://github.com/ptyin/sqloj","last_synced_at":"2026-04-02T02:07:31.556Z","repository":{"id":46227749,"uuid":"373018313","full_name":"ptyin/sqloj","owner":"ptyin","description":"集成SQL语句测评和学生管理的数据库系统实验平台，可用于毕设和大作业，欢迎提issue和pr。","archived":false,"fork":false,"pushed_at":"2022-10-17T11:02:17.000Z","size":30470,"stargazers_count":17,"open_issues_count":1,"forks_count":2,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-04-15T03:44:01.396Z","etag":null,"topics":["oj","sql"],"latest_commit_sha":null,"homepage":"","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/ptyin.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2021-06-02T02:38:40.000Z","updated_at":"2025-03-08T09:32:03.000Z","dependencies_parsed_at":"2023-01-20T07:15:36.442Z","dependency_job_id":null,"html_url":"https://github.com/ptyin/sqloj","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/ptyin/sqloj","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ptyin%2Fsqloj","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ptyin%2Fsqloj/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ptyin%2Fsqloj/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ptyin%2Fsqloj/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ptyin","download_url":"https://codeload.github.com/ptyin/sqloj/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ptyin%2Fsqloj/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31294398,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-02T01:43:37.129Z","status":"online","status_checked_at":"2026-04-02T02:00:08.535Z","response_time":89,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["oj","sql"],"created_at":"2024-10-01T11:14:31.320Z","updated_at":"2026-04-02T02:07:31.520Z","avatar_url":"https://github.com/ptyin.png","language":"JavaScript","readme":"\n\u003ch2 align=\"center\"\u003eWelcome to SQLOJ 👋\u003c/h2\u003e\n\n\u003cimg alt=\"SQLOJ\" src=\"doc/images/logo.png\"/\u003e\n\u003cp align=\"center\"\u003e\n  \u003cimg alt=\"Version\" src=\"https://img.shields.io/badge/version-0.1.0-blue.svg?cacheSeconds=2592000\" /\u003e\n  \u003ca href=\"https://blog.csdn.net/weixin_43090100/article/details/118505354\" target=\"_blank\"\u003e\n    \u003cimg alt=\"Documentation\" src=\"https://img.shields.io/badge/documentation-yes-brightgreen.svg\" /\u003e\n  \u003c/a\u003e\n  \u003ca href=\"https://opensource.org/licenses/MIT\" target=\"_blank\"\u003e\n    \u003cimg alt=\"License: MIT\" src=\"https://img.shields.io/badge/License-MIT-yellow.svg\" /\u003e\n  \u003c/a\u003e\n\u003c/p\u003e\n\n\u003e A lightweight database system experimental platform that integrates an OJ of SQL and a variety of practical functionalities.\n\n\n### ✨ [Demo](http://101.34.91.143:8080/)\n\n## Install\n\n```sh\ndocker pull ptyin/sqloj\n```\n\n## Usage\n\n```sh\ndocker run -d -p 80:80 -v \u003cmongo-db-path\u003e:/data/db -v \u003cmongo-configdb-path\u003e:/data/configdb -v \u003csqlite-path\u003e:/var/lib/sqloj ptyin/sqloj:latest \n```\n\nwhere \\\u003cmongo-db-path\\\u003e\\\u003cmongo-configdb-path\\\u003e\\\u003csqlite-path\\\u003e denotes the data persistence directories path in your server. e.g.,\n\nIn Windows:\n\n```shell\ndocker 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 \n```\n\nIn Linux:\n\n```shell\ndocker 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 \n```\n\n\n## Run tests\n\n```sh\nnpm run test\n```\n\n## Functionality\n\n### Module Design\n\n![modules](doc/images/modules.png)\n\n### User Management\n\n#### User Role\n\n- teacher\n  - Default teacher username: admin\n  - Default teacher password: tsxt-adm1n\n- student\n\n#### Login Panel\n\n![login](doc/images/login.png)\n\n### Teacher Example Page\n\n#### Publish an assignment\n\n![addAssignment](doc/images/addAssignment.png)\n\n#### Add questions in a certain assignment\n\n![addQuestion](doc/images/addQuestion.png)\n\n\n#### Upload a database\n\n![addDatabase](doc/images/addDatabase.png)\n\n### Student Example Page\n\n#### View question list\n\n![questions](doc/images/questions.png)\n\n\n#### Review uploaded records\n\n![records](doc/images/records.png)\n\nStatus might be (RUNNING/AC/WA/RE/TLE)。\n\n#### Check specific information in a record\n\n![recordDetail](doc/images/recordDetail.png)\n\n## Author\n\n👤 **Peter Yin**\n\n* Website: http://ptyin.asia/\n* Github: [@PTYin](https://github.com/PTYin)\n\n## Show your support\n\nGive a ⭐️ if this project helped you!\n\n## 📝 License\n\nCopyright © 2021 [Peter Yin](https://github.com/PTYin).\u003cbr /\u003e\nThis project is [MIT](https://opensource.org/licenses/MIT) licensed.\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fptyin%2Fsqloj","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fptyin%2Fsqloj","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fptyin%2Fsqloj/lists"}