{"id":20934534,"url":"https://github.com/thisisgame/thisisgame-web-openresty","last_synced_at":"2026-04-16T09:02:57.480Z","repository":{"id":106841857,"uuid":"604911434","full_name":"ThisisGame/thisisgame-web-openresty","owner":"ThisisGame","description":null,"archived":false,"fork":false,"pushed_at":"2023-02-22T11:20:02.000Z","size":18632,"stargazers_count":0,"open_issues_count":0,"forks_count":1,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-12-26T21:01:49.382Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/ThisisGame.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"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":"2023-02-22T03:18:08.000Z","updated_at":"2024-02-14T06:13:24.000Z","dependencies_parsed_at":null,"dependency_job_id":"0190de9b-435d-42ad-9b1e-734e12909120","html_url":"https://github.com/ThisisGame/thisisgame-web-openresty","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/ThisisGame/thisisgame-web-openresty","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ThisisGame%2Fthisisgame-web-openresty","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ThisisGame%2Fthisisgame-web-openresty/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ThisisGame%2Fthisisgame-web-openresty/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ThisisGame%2Fthisisgame-web-openresty/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ThisisGame","download_url":"https://codeload.github.com/ThisisGame/thisisgame-web-openresty/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ThisisGame%2Fthisisgame-web-openresty/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31878833,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-16T07:36:03.521Z","status":"ssl_error","status_checked_at":"2026-04-16T07:35:53.576Z","response_time":69,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"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-18T22:09:42.652Z","updated_at":"2026-04-16T09:02:57.444Z","avatar_url":"https://github.com/ThisisGame.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"### 1. 安装OpenResty\n\n#### Windows\n\n解压openresty-1.19.9.1-win64.zip到当前位置\n\n到app目录点击bat启动openresty\n\n#### Mac\n\n先安装依赖\n\n```bash\nbrew update\nbrew install pcre openssl\n```\n\n下载源码：https://openresty.org/cn/download.html\n\n解压，进入文件夹，执行下面命令编译安装。\n\n```bash\n$ ./configure \\\n   --with-cc-opt=\"-I/usr/local/opt/openssl/include/ -I/usr/local/opt/pcre/include/\" \\\n   --with-ld-opt=\"-L/usr/local/opt/openssl/lib/ -L/usr/local/opt/pcre/lib/\" \\\n   -j8\n```\n\n上面命令假设 hombrew 把库都安装到 /usr/local/opt/ 目录下面。如果不是注意修改。\n\n安装完毕后，在app目录执行sh启动。\n\n#### Ubuntu18.04.6\n\n先安装openresty\n\n参考官网：https://openresty.org/cn/linux-packages.html\n\n你可以在你的 Ubuntu 系统中添加我们的 APT 仓库，这样就可以便于未来安装或更新我们的软件包（通过 apt-get update 命令）。 运行下面的命令就可以添加仓库（每个系统只需要运行一次）：\n\n步骤一：安装导入 GPG 公钥时所需的几个依赖包（整个安装过程完成后可以随时删除它们）：\n\n```bash\nsudo apt-get -y install --no-install-recommends wget gnupg ca-certificates\n```\n\n步骤二：导入我们的 GPG 密钥：\n\n```bash\nwget -O - https://openresty.org/package/pubkey.gpg | sudo apt-key add -\n```\n\n步骤三：添加我们官方 APT 仓库。\n\n对于 x86_64 或 amd64 系统，可以使用下面的命令：\n\n```bash\necho \"deb http://openresty.org/package/ubuntu $(lsb_release -sc) main\" \\\n    | sudo tee /etc/apt/sources.list.d/openresty.list\n```\n\n而对于 arm64 或 aarch64 系统，则可以使用下面的命令:\n\n```bash\necho \"deb http://openresty.org/package/arm64/ubuntu $(lsb_release -sc) main\" \\\n    | sudo tee /etc/apt/sources.list.d/openresty.list\n```\n\n步骤四：更新 APT 索引：\n\n```bash\nsudo apt-get update\n```\n\n然后就可以像下面这样安装软件包，比如 openresty：\n\n```bash\nsudo apt-get -y install openresty\n```\n\n这个包同时也推荐安装 openresty-opm 和 openresty-restydoc 包，所以后面两个包会缺省安装上。 如果你不想自动关联安装，可以用下面方法关闭自动关联安装：\n\n```bash\nsudo apt-get -y install --no-install-recommends openresty\n```\n\n参阅 OpenResty Deb 包 页面获取这个仓库里头更多可用包的信息。\n\n安装完成后, openresty 已自动启动. 如需关闭,执行\n\n```bash\nsudo systemctl stop openresty.service\n```\n\n安装完成后, openresty 默认开机启动. 如需关闭,执行\n\n```bash\nsudo systemctl disable openresty.service\n```\n\n启动 openresty\n\n```bash\nsudo systemctl start openresty.service\n```\n\n这种方式 openresty 的默认安装位置\n\n```bash\n/usr/local/openresty/nginx/sbin/nginx\n```\n\n安装完毕后，先用上面的命令关闭openresty，并且关闭开机启动，因为我这里用的是手动启动。\n\n搞定上面的之后，在app目录执行sh启动。\n\n启动之后就能访问首页(localhost:8000)了，但是子模块的Markdown图书还没有下载好，现在访问不了教程内页。\n\n\n### 2. 添加图书\n\n进入`app\\md`目录添加图书\n\n```bash\n#克隆图书\ngit clone https://github.com/ThisisGame/cpp-game-engine-book.git\n```\n\n克隆好之后，就可以访问教程内页了。\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fthisisgame%2Fthisisgame-web-openresty","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fthisisgame%2Fthisisgame-web-openresty","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fthisisgame%2Fthisisgame-web-openresty/lists"}