{"id":16296878,"url":"https://github.com/windomz/quizzee","last_synced_at":"2025-04-09T13:36:47.821Z","repository":{"id":83794868,"uuid":"123711717","full_name":"WindomZ/quizzee","owner":"WindomZ","description":"问答题辅助Go方案 - 开箱即用、推荐引擎、嵌入式存储、RESTful API","archived":false,"fork":false,"pushed_at":"2018-03-23T13:27:57.000Z","size":3800,"stargazers_count":2,"open_issues_count":0,"forks_count":1,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-02-15T07:42:12.741Z","etag":null,"topics":["puzzle-solution","puzzle-solver","quiz","quiz-game"],"latest_commit_sha":null,"homepage":"","language":"Go","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/WindomZ.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2018-03-03T16:48:45.000Z","updated_at":"2022-08-30T03:58:37.000Z","dependencies_parsed_at":"2023-07-12T14:46:11.089Z","dependency_job_id":null,"html_url":"https://github.com/WindomZ/quizzee","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/WindomZ%2Fquizzee","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/WindomZ%2Fquizzee/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/WindomZ%2Fquizzee/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/WindomZ%2Fquizzee/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/WindomZ","download_url":"https://codeload.github.com/WindomZ/quizzee/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248050206,"owners_count":21039342,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","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":["puzzle-solution","puzzle-solver","quiz","quiz-game"],"created_at":"2024-10-10T20:24:18.138Z","updated_at":"2025-04-09T13:36:47.798Z","avatar_url":"https://github.com/WindomZ.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# quizzee\n\n\u003e 问答题辅助方案 - 开箱即用、推荐引擎、嵌入式存储、RESTful API\n\n[![Build Status](https://travis-ci.org/WindomZ/quizzee.svg?branch=master)](https://travis-ci.org/WindomZ/quizzee)\n\n目的是为各类问答题辅助项目，统一提供`推荐`与`记忆`两个核心服务解决方案，高效且稳定。\n\n提供`两种`接入方式：\n- RESTful [API](#api)\n- [原生Go用法](#usage)\n\n## Features\n- [x] `1问题+N选项`的答题模式\n- [x] 推荐`择优`+`答案`记忆\n- [x] RESTful [API](#api)\n- [x] 4种国内主流[`搜索引擎`](#search-engine)支持\n- [x] 5种跨平台嵌入式[`数据库`](#database)支持\n\n## Install\n```bash\ngo get github.com/WindomZ/quizzee/...\n```\n\n## API\n跨语言方案，详见[API服务和文档](./server)\n\n推荐下面Docker方案\n\n### Docker\n构建镜像\n```bash\ndocker build -t quizzee/server .\n```\n\n运行容器\n```bash\ndocker run -d -p 8080:8080 --name quizzee-server quizzee/server\n```\n\n## Usage\n原生Go方案，两种模式支持：\n1. [开箱即用](#zero-configuration-usage) - 纯Go实现，快速应用各平台\n1. [自行配置](#advanced-usage) - 配置方案，可能需要cgo编译\n\n### Zero configuration usage\n```\nimport \"github.com/WindomZ/quizzee/quizzeer\"\n\n// 初始化数据库\nquizzeer.RegisterDB(\"testing\", \"../data/data.db\") // 配置表名和文件路径\n...\n\n// 推荐答案\nrecommend, rates := quizzeer.Recommend(\n    \"手机生产商诺基亚最初是以生产什么为主？\", // 问题\n    []string{\"耳机\", \"纸\", \"杂货\"},      // 回答选项\n)\n// recommend int       最佳选项序号\n// rates     []float64 各选项权重比\n...\n\n// 存储结果\nquizzeer.Mark(\n    \"手机生产商诺基亚最初是以生产什么为主？\",\n    []string{\"耳机\", \"纸\", \"杂货\"},\n    \"纸\",\n)\n```\n\n### Advanced usage\n```\nimport (\n\t_ \"github.com/WindomZ/gcws/jieba\"\n\t\"github.com/WindomZ/quizzee\"\n\t_ \"github.com/WindomZ/quizzee-db/bolt\"\n)\n\n// 初始化搜索\nquizzee.RegisterCWS(\"jieba\")\n// 初始化数据库\nquizzee.RegisterDB(\"testing\", \"../data/data.db\") // 配置表名和文件路径\n...\n\n// 推荐答案\nrecommend, rates := quizzee.Recommend(\n    \"手机生产商诺基亚最初是以生产什么为主？\", // 问题\n    []string{\"耳机\", \"纸\", \"杂货\"},      // 回答选项\n)\n// recommend int       最佳选项序号\n// rates     []float64 各选项权重比\n...\n\n// 存储结果\nquizzee.Mark(\n    \"手机生产商诺基亚最初是以生产什么为主？\",\n    []string{\"耳机\", \"纸\", \"杂货\"},\n    \"纸\",\n)\n```\n\n## Search engine\n- Baidu\n- Bing\n- Sogou\n- 360\n\n## Database\n详见[quizzee-db](https://github.com/WindomZ/quizzee-db) - 相关数据库支持\n\n## Related\n- [tools-weight](./tools/weight) - 搜索权重计算工具\n\n## Contributing\n欢迎你提交PR。\n\n也可以在[issues](https://github.com/WindomZ/quizzee/issues)汇报Bugs，提出新想法、新要求或者讨论问题。\n\n如果你喜欢这个项目，可以点下 :star: 予以支持！\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwindomz%2Fquizzee","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fwindomz%2Fquizzee","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwindomz%2Fquizzee/lists"}