How to do panel development

Hi there,

Last week I did a small contribution to the panel. But the experience I had with the build step was not very smooth. To put it differently, I couldn’t figure out how to do it. Here is what I did:

  • I downloaded the starter kit
  • I emptied the /kirby folder
  • I cloned the getkirby/kirby repo in the /kirby folder
  • I ran npm install

Then I tried to run npm run dev. That worked, but visiting localhost:3000 as indicated in the terminal yielded no effect, just a 404. I could not find out what to do next, not in the docs and not in the contributing guide.

So, I ended up running npm run build after every change I made to the code, and then deleting the /media/panel folder every time as well :see_no_evil:

It was a bit of a painful experience. I probably missed something obvious.

TL;DR how to contribute to the panel? Is there documentation about it?

In the /panel folder there is a readme that tells us that it expects to run in the kirby sandbox.

@texnixe I missed something obvious indeed :sweat_smile:

Thanks for the helpful reply!