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

Allow the user to choose a server in the front end #71

Open
tameware opened this issue Jul 11, 2020 · 2 comments
Open

Allow the user to choose a server in the front end #71

tameware opened this issue Jul 11, 2020 · 2 comments
Labels
enhancement New feature or request frontend

Comments

@tameware
Copy link
Contributor

He should be able to pick from a list or enter a URL of his own.

The setting should be unobtrusive - most users will just connect to our production service.

The initial choices might be:

  • local
  • dev
  • test
  • prod
@suokko suokko added the enhancement New feature or request label Jul 12, 2020
@suokko
Copy link
Contributor

suokko commented Jul 12, 2020

Can we make it automatically detect correct service?

Example would be:

  • file:// url then use localhost:5000 to connect a local service started with python3 -m src.api
  • https:// url would request a hostname file from server to use for service

This assumes we would write the hostname information when deploying frontend. This idea depends on decision how we deploy front end code. Firebase might be the best fitting google product because it offers CDN and easy version management. https://cloud.google.com/solutions/web-serving-overview

@tameware
Copy link
Contributor Author

I like the idea of using localhost by default if the URL is file:// or localhost://. It's not foolproof, though, since the frontend can run locally but still connect to a remote server.

I've never used Firebase. From the description you linked to, it looks promising. Let's try it instead of an AppEngine front end!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request frontend
Projects
None yet
Development

No branches or pull requests

2 participants