# Sunstone Fireedge working dev environment

**URL:** <https://forum.opennebula.io/t/sunstone-fireedge-working-dev-environment/10870>\
**Category:** Installation & Configuration\
**Created:** [October 5, 2022, 4:42pm UTC](https://forum.opennebula.io/t/sunstone-fireedge-working-dev-environment/10870 "2022-10-05T16:42:51Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![guille](https://avatars.discourse-cdn.com/v4/letter/g/aeb1de/32.png) [@guille](https://forum.opennebula.io/u/guille)\
**Post date:** [October 5, 2022, 4:42pm UTC](https://forum.opennebula.io/t/sunstone-fireedge-working-dev-environment/10870/1 "2022-10-05T16:42:52Z")

</div>

Hello,

I am trying to get a local (hopefully light) version of opennebula working environment focused on Fireedge.

Ideally I would like to be able to do some additions to the UI while running it in dev mode, connected to some sort of opennebula instance (local, but potentially remote). I only want to make additions/modifications to Fireedge.

So far my best attempt so far was to set a vagrant vm with:

1. minione running with `--frontend --force` option
2. Manually stopping the fireedge service with `systemclt stop opennebula-fireedge`
3. Cloning 6.4 tag of [one](https://github.com/OpenNebula/one)
4. Moving to `src/fireedge` and running `npm i` and `npm run dev`

This sort of works but with some caveats:

1. Depending on the actions taken in the UI, npm fails and stops the app, the log does not add a lot of information
2. Not hot reload support (I guess I will add some sort of `--watch` option to the npm scripts)

Is this a good way to approach what I’m looking for? Is there a better setup for this use case?

My OS is mac. I decided to use a vagrant vm so I can reproduce this easily in other environments. My first attempt was to use docker but is was not easy to make it work with `systemd` out of the box, thus vagrant.

---

<div class="post-metadata">

**Author:** ![Antoine\_2600](https://yyz1.discourse-cdn.com/flex031/user_avatar/forum.opennebula.io/antoine_2600/32/7976_2.png) [@Antoine\_2600](https://forum.opennebula.io/u/Antoine_2600)\
**Post date:** [February 13, 2024, 7:04pm UTC](https://forum.opennebula.io/t/sunstone-fireedge-working-dev-environment/10870/2 "2024-02-13T19:04:16Z")

</div>

Hi,

I have the same problem that you, but i compile with “scons fireedge=yes” and run install.sh after i stopping the fireedge service.  
I think we have a better option and i want to know how can my improve the develop environnement.

---

<div class="post-metadata">

**Author:** ![vpalma](https://yyz1.discourse-cdn.com/flex031/user_avatar/forum.opennebula.io/vpalma/32/8065_2.png) [@vpalma](https://forum.opennebula.io/u/vpalma)\
**Post date:** [February 14, 2024, 12:49pm UTC](https://forum.opennebula.io/t/sunstone-fireedge-working-dev-environment/10870/3 "2024-02-14T12:49:38Z")

</div>

Hi @Antoine_2600 👋  
What error are you getting exactly?

And just out of curiosity, what changes are you testing in FireEdge? FireEdge is currently in beta with many features yet to be implemented, but by version 7.0 it will be ready to replace the current Sunstone

Best,  
Victor.

---

<div class="post-metadata">

**Author:** ![Antoine\_2600](https://yyz1.discourse-cdn.com/flex031/user_avatar/forum.opennebula.io/antoine_2600/32/7976_2.png) [@Antoine\_2600](https://forum.opennebula.io/u/Antoine_2600)\
**Post date:** [February 15, 2024, 3:31pm UTC](https://forum.opennebula.io/t/sunstone-fireedge-working-dev-environment/10870/4 "2024-02-15T15:31:46Z")

</div>

Hi vpalma,

Thanks for answering me, my question is how can improve my environment to develop on Fireedge.  
how do you test your code quickly ?  
Actually, I clone repository, add some functionality but i cant to test without compile.  
My only method is to compile when i finish, stop service and install with ./install.sh

Is it possible to have more information about you

Regards,

Antoine

---

<div class="post-metadata">

**Author:** ![vhansson](https://avatars.discourse-cdn.com/v4/letter/v/b4bc9f/32.png) [@vhansson](https://forum.opennebula.io/u/vhansson)\
**Post date:** [February 16, 2024, 4:49am UTC](https://forum.opennebula.io/t/sunstone-fireedge-working-dev-environment/10870/5 "2024-02-16T04:49:52Z")

</div>

Hello @Antoine_2600!

Glad to hear you’re taking an interest in contributing to FireEdge. One quick and easy way to develop and test features without having to recompile every time is by running FireEdge in [dev](https://github.com/OpenNebula/one/blob/master/src/fireedge/package.json#L7) mode. So if you switch over to your FireEdge directory and run `npm run dev`, it will recompile and launch FireEdge in `dev` mode, this let’s you make changes to the code and every time you save, it does a `hot-reload` so all changes will be applied directly without having to recompile everything!

Best regards,  
Hansson
