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

Anyway to have the html file run independently from the Go File Server? #26

Open
O-Luhishi opened this issue Jul 27, 2021 · 2 comments
Open
Labels
enhancement New feature or request

Comments

@O-Luhishi
Copy link

Description

Could there be a way to have the index.html file to run independently from the go endpoint/file server. Basically, if I wanted to integrate this into an existing React/Vue project it doesn't seem like it can work. When I run the index.html file by itself using a Python server or React it isn't able to ping the Rest endpoints for /garbage /empty etc. Any chance this is possible?

Why it should be implemented

This would benefit anyone looking to port this project into an already existing React/Vue/Js project.

Thank you!

@maddie maddie added the enhancement New feature or request label Sep 17, 2021
@maddie
Copy link
Collaborator

maddie commented Sep 17, 2021

Sorry for the late reply, been too busy IRL.

I'll see what I can do, or PR is welcomed! :)

@maddie
Copy link
Collaborator

maddie commented Sep 17, 2021

I think that you can already use it as a backend only, just point to the endpoints from your custom frontend.

EDIT: The assets folder was designed for custom frontends served by the backend. If you wish to serve your static assets without configuring yet another server (i.e. nginx, Apache), you can just put your custom built frontend assets into the assets folder and have the backend serve them for you.

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

No branches or pull requests

2 participants