piral-admin-template
⚡ A monorepo template for creating an Admin UI with Piral.
The component system of this sample is based on tabler-react.
Provides a great starting point for building modular (Admin) UI interfaces. Different repositories? Monorepo? Hybrid? You decide.
Feel free to play around with the code using StackBlitz.
You can visit this demo at admin-template.samples.piral.cloud/.
First, use lerna to bootstrap the mono repo. Make sure to have yarn (v1) installed for this.
npx lerna bootstrapNow you can run all pilets:
yarn watch:allAlternatively, run only a single pilet (e.g., the pilet-status):
name=status yarn watch:piletOr if you wan to, you can also run the app shell in isolation:
yarn watch:portalJust run
name=foo yarn add:piletit will create a new directory packages/pilet-foo, already scaffolded and integrated. Choose a different run than foo for your purposes.
You can publish all pilets using
npx lerna run publish-piletThis will require two environment variables to be set:
FEED_URLpointing to your feedAPI_KEYthe API key to publish pilets to the given feed
Doing it in one sweep:
FEED_URL="https://feed.piral.cloud/api/v1/pilet/admin-sample" API_KEY="..." npx lerna run publish-piletPiral and this sample code is released using the MIT license. For more information see the license file.

