spotbit
spotbit copied to clipboard
Improve integration/deployment of web front-end
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
- [x] Move the code and assets in
wwwto thetemplatesandstaticdirectories. - [x] Rewrite
server.py: @app.get('/')to serve the front-end.
TODO
- [ ] Remove the
wwwdirectory. - [ ] Update the code that parses Spotbit responses (use Typescript where possible).
- templates/index.html uses a
proxy.phpendpoint. This should instead use the new Spotbit endpoints (whose documentation can be found at the/docsendpoint of a running Spotbit instance).
- templates/index.html uses a
- [ ] Update
installSpotbit.shor 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/)
@bwakedavis would you be interested in doing this?
@bwakedavis would you be interested in doing this?
Yes, this is something am interested in.