Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Improve integration/deployment of web front-end #59

Open
2 of 5 tasks
nochiel opened this issue May 4, 2022 · 2 comments
Open
2 of 5 tasks

Improve integration/deployment of web front-end #59

nochiel opened this issue May 4, 2022 · 2 comments

Comments

@nochiel
Copy link
Contributor

nochiel commented May 4, 2022

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/)
@nochiel
Copy link
Contributor Author

nochiel commented May 4, 2022

@bwakedavis would you be interested in doing this?

@bwakedavis
Copy link
Contributor

@bwakedavis would you be interested in doing this?

Yes, this is something am interested in.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants