-
Notifications
You must be signed in to change notification settings - Fork 8
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
Integrating frontend #82
Comments
Hi, For instance, in
{erocci_listener_http, [{frontend, "erocci_frontend/app"}]}
{erocci_listener_http, [{frontend, "/my/path/to/OCCInterface"}]}
{erocci_listener_http, [{frontend, undefined}]}
Can you test and close ? |
Thank you very much, I will test it. |
Ok I think I managed to do something correct. I put the steps I needed to do here, I'll see later if I can improve (maybe make a script to do that would be great) 1- rm -rf deps/erocci_frontend var url = 'http://localhost:8080'+relativeUrl; 7 - remove this code from src/components/navbar <div className="ui item right navBarRight">
<div className="ui item">
<select className="ui fluid search dropdown backendURL" name="backendURL"onChange={() => {}}>
{options}
</select>
<button className="ui button useButton" onClick={this.updateBackendURL}>Use</button>
</div>
</div> 8- npm run build
10- should work |
I am working on the automation of this process. I have an issue with the makefile : I simply wanted to change the download of the frontend with:
But with make, I have this error:
|
I got it I think, it means the commit I am targeting |
|
Perfect |
Alright I finished, just look at the pull request I sent. Works greatly here. You can close once the PR is accepted I guess. |
Don't forget to update the version of OCCInterface in deps.lock, I am continuously improving/fixing bugs |
I tried to add OCCInterface to erocci, by putting my project into /deps/erocci_frontend, then add the same makefile as here https://github.com/erocci/erocci_frontend, then recompile the whole thing.
It does not work, going to / redirects to /_frontend but no index.html is loaded.
I see that you used a previous project https://github.com/occiware/occi-js, and the front end does not work on http://malmo.lizenn.net:8080/_frontend/ ! Could you fix it and give some informations?
I think OCCInterface would give a great frontend to Erocci.
The text was updated successfully, but these errors were encountered: