Hacktoberfest 2026:维护者为十月标记出来的 issue,仍然开放、适合新手。 浏览 Hacktoberfest issue

Improve integration/deployment of web front-end

未关闭
#59 2 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看

还没有人认领这个 Issue。

评估

难度
4/5
预计耗时
3-5 天
新手友好度
35/100
Issue 类型
功能
描述清晰度
基本清楚
活跃度
停滞
技术栈
apache, php, python, typescript

调研方向

首先检查 www、templates/index.html、server.py 和 installSpotbit.sh 中剩余的 TODO,并在正在运行的 Spotbit 实例上检查 /docs 端点。使用新的 Spotbit 端点替换对 proxy.php 响应的解析,移除 www,并更新 installSpotbit.sh,或添加通过 Apache 或其他反向代理进行托管的文档。

由索引模型根据 Issue 内容生成。

描述

Currently, the web front end is in the www directory. It has to be deployed separately from the Spotbit server.

We would like this web front-end to be served from Spotbit servers /. That is:

Done in #79

  • Move the code and assets in www to the templates and static directories.
  • Rewrite server.py: @app.get('/') to serve the front-end.

TODO

  • Remove the www directory.
  • Update the code that parses Spotbit responses (use Typescript where possible).
    • templates/index.html uses a proxy.php endpoint. This should instead use the new Spotbit endpoints (whose documentation can be found at the /docs endpoint of a running Spotbit instance).
  • Update installSpotbit.sh or add documentation that describes how to host the front-end in clearnet using Apache or some other reverse proxy e.g. Caddy. (see https://fastapi.tiangolo.com/deployment/)
主要语言
CSS
星标
36
派生
17
PR 合并指标
30 天内没有已合并 PR

环境准备

  • 没有 Dockerfile 或 Docker Compose 文件
  • 没有 Pull Request 模板
  • 阅读贡献指南

从这里开始

  1. 先读完整个 Issue,再读项目的贡献指南。
  2. 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
  3. Fork 仓库,在一个分支上完成修改。
  4. 提交 Pull Request,并在描述里引用这个 Issue 编号。

BlockchainCommons/spotbit 的其他 Issue

查看 BlockchainCommons/spotbit 的全部 Issue

相似的 Issue

更多 DevOps Issue

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。