{"id":19336824,"url":"https://github.com/blackbbc/je-shrine-server","last_synced_at":"2026-06-13T04:32:20.802Z","repository":{"id":84995115,"uuid":"107756116","full_name":"blackbbc/JE-Shrine-Server","owner":"blackbbc","description":"自由神社后端 http://www.moeje.org/","archived":false,"fork":false,"pushed_at":"2017-11-18T06:20:44.000Z","size":58,"stargazers_count":0,"open_issues_count":0,"forks_count":1,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-02-24T08:13:39.809Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"Python","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/blackbbc.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":"2017-10-21T06:10:43.000Z","updated_at":"2017-10-22T16:46:25.000Z","dependencies_parsed_at":null,"dependency_job_id":"5790166f-face-4085-8798-7c8e21512076","html_url":"https://github.com/blackbbc/JE-Shrine-Server","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/blackbbc/JE-Shrine-Server","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/blackbbc%2FJE-Shrine-Server","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/blackbbc%2FJE-Shrine-Server/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/blackbbc%2FJE-Shrine-Server/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/blackbbc%2FJE-Shrine-Server/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/blackbbc","download_url":"https://codeload.github.com/blackbbc/JE-Shrine-Server/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/blackbbc%2FJE-Shrine-Server/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":34272603,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-26T15:22:16.424Z","status":"online","status_checked_at":"2026-06-13T02:00:06.617Z","response_time":62,"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":[],"created_at":"2024-11-10T03:12:33.273Z","updated_at":"2026-06-13T04:32:20.786Z","avatar_url":"https://github.com/blackbbc.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"![alt](http://www.moeje.org/wp-content/uploads/2016/07/017.jpg)\n\n\u003cp align=\"center\"\u003e\n  \u003ca href='https://www.versioneye.com/user/projects/598d6f846725bd005228a0e4'\u003e\u003cimg src='https://www.versioneye.com/user/projects/598d6f846725bd005228a0e4/badge.svg?style=flat-square' alt=\"Dependency Status\" /\u003e\u003c/a\u003e\n  \u003ca href='https://github.com/blackbbc/JE-Shrine-Server/blob/master/LICENSE'\u003e\u003cimg src='https://img.shields.io/github/license/mashape/apistatus.svg' alt=\"License\" /\u003e\u003c/a\u003e\n\u003c/p\u003e\n\n\u003cp align=\"center\"\u003e\n  \u003ca href=\"http://www.moeje.org/\"\u003e自由神社\u003c/a\u003e后端部分，使用Flask开发\n\u003c/p\u003e\n\n\u003cp align=\"center\"\u003e\n  前端部分——\u003ca href='https://github.com/TOKdawn/JE_shrine'\u003ehttps://github.com/TOKdawn/JE_shrine\u003c/a\u003e\n\u003c/p\u003e\n\n## 相关文档\n- [数据库结构](doc/db.md)\n- [API文档](https://blackbbc.github.io/slate/)\n\n## 环境要求\n- Python 3.6+\n- Mongo 3.4+\n- Elasticsearch 5.0+\n\n## 前置要求\n\n### 安装依赖\n```\n[sudo] pip install -r requirements.txt\n```\n\n### 导入Schema到Elasticsearch中\n\n1. 启动`Elasticsearch`\n2. 调用如下API导入Schema\n```json\nPUT http://localhost:9200/je-shrine\n\n{\n    \"mappings\": {\n        \"music\": {\n            \"_source\": {\n                \"enabled\": true\n            },\n            \"dynamic\": false,\n            \"properties\": {\n                \"title\": {\"type\": \"text\"},\n                \"alias\": {\"type\": \"text\"},\n                \"author\": {\"type\": \"text\"},\n                \"album\": {\"type\": \"text\"},\n                \"tags\": {\"type\": \"text\"},\n                \"createDt\": {\"type\": \"date\"},\n                \"updateDt\": {\"type\": \"date\"},\n                \"views\": {\"type\": \"integer\"}\n            }\n        }\n    }\n}\n```\n\n## 启动\n\n1. 确保`MongoDB`运行中\n2. 确保`Elasticsearch`运行中\n3. 启动`mongo-connector`同步`MongoDB`与`Elasticsearch`\n```bash\nmongo-connector -m localhost:27017 -t localhost:9200 -d elastic2_doc_manager -n je-shrine.music\n```\n4. 修改`src/config.py.default`相关参数并改名为`src/config.py`\n5. 运行服务器\n```bash\ncd src\nexport FLASK_DEBUG=1\nexport FLASK_APP=app.py\nflask run\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fblackbbc%2Fje-shrine-server","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fblackbbc%2Fje-shrine-server","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fblackbbc%2Fje-shrine-server/lists"}