This repo contains the Lilypad UIs reachable via a browser or node based.
Each UI is seperated into it's own pnpm workspace, see details in ## Project structure
below.
Apps
/apps/info-dashboard
: The Lilypad network metrics UI hosted at https://info.lilypad.tech/apps/website
: The Lilypad main site/apps/website-cms
: (WIP!) Payload CMS that will potentially power the info-dashboard and website/apps/rewards-dashboard
: Community Rewards and Recognition site hosted at https://oss.lilypad.tech Packages
/packages/shared-components
: Components that are used by multiple apps/packages/tailwind-styles
: Untitled UI 4.0 tailwind preset used by multiple appsThe tailwind preset used throughout all workspaces in this repo relies heavily on npm package @frontline-hq/uui-tailwind, which provides a lot of useful tailwind utilities for Untitled UI 4.0.
Additionally, the (!private) npm package @frontline-hq/uui-foundations-assets is used to provide Untitled UI 4.0 icons that can be easily used.
The npm access token is made available via doppler.
All UI's are prototyped in Figma.
Make sure you have access to the doppler project and configuration and have run doppler setup
.
Run the following command for setting things up:
npm run boot
Use the following command to execute a local server to serve and hot-reload the given app:
npm run dev <app-name>
This will run the Next.js app located at ./apps/<app-name>
.
Git flow conventions Please follow these conventions when working on this repo.
The git branch main
is automatically deployed:
/apps/info-dashboard
: https://info.lilypad.tech/apps/website
: No deployment yet.The git branch staging
is automatically made available via staging:
/apps/info-dashboard
: No staging yet./apps/website
: No staging yet.Development on this repo is currently paused but will be continued shortly.
Several features that are prototyped in Figma are already implemented waiting for API endpoints from the backend to be made available.
The corresponding code to these UI elements has been commented out and can therefore easily be added to production.
This is a monorepo utilizing nx and pnpm workspaces. That implies:
npx
is pnpm dlx
.Ensure that the app-name
property in the package.json
matches the name you use in the command to run the application. For instance, if the app-name
property in package.json
is info-dashboard
, you should use info-dashboard
in the command as well (npm run dev info-dashboard
).
A good read to understand nx and pnpm workspaces and the capabilities: https://dev.to/nx/setup-a-monorepo-with-pnpm-workspaces-and-speed-it-up-with-nx-1eem#installing-nx