datumforge / datum-ui

Holds the UI for the Datum server
https://console.datum.net
Apache License 2.0
9 stars 2 forks source link
graphql nextjs typescript ui

datum-ui

This is the Datum UI monorepo. This repo is intended to help our teams and developers speed up development while building sustainable and low carbon footprint user interfaces.

What's inside?

This monorepo is run on Bun and built using Turborepo. It includes the following packages/apps:

Apps and Packages

Each package/app is 100% TypeScript.

Stack

Our team using this stack for our Turborepo:

Prerequisites

Datum suggests using Bun for its speed and versatility, however, Turborepo supports many of the common package managers such as npm, yarn, or pnpm.

To install Bun run:

curl -fsSL https://bun.sh/install | bash

Build

To build all apps and packages, run the following command:

bun run build

Develop

  1. Copy the .env, this is in .gitignore so you do not have to worry about accidentally committing it. This hold example of environment configurations which you should review and potentially override depending on your needs.

    cp ./config/.env-example ./config/.env
  2. To develop all apps and packages, run the following command:

    bun install
    bun dev

Alternatively, you can run a single repo instead of all the repos with the filter argument:

For example to develop on the docs app only run:

bun dev --filter docs