StardustStardust

Setup

Prerequisites

  • Node.js and pnpm installed on your machine.
  • Bun installed on your machine.
  • Docker installed on your machine.
  • A working PostgreSQL database - you can use docker to set one up by running:
    docker run --name stardust-postgres -p 5432:5432 -e POSTGRES_PASSWORD=stardustdev -d postgres

Setup

Clone the repository

Clone the Stardust repository and install the dependencies.

git clone https://github.com/spaceness/stardust -b rewrite && cd stardust
pnpm install

Init config files

Create the app and daemon configuration files.

<repo>/app-config.yaml
databaseUrl: "postgresql://postgres:example@localhost/postgres"
nodes:
  - hostname: localhost
    id: default
    port: 4000
    token: idkbruh
auth:
  secret: idkbruh
  credentials:
    enabled: true
    signups: true
# yaml-language-server: $schema=../../packages/config/schema.json
<repo>/daemon-config.yaml
docker:
  network: stardust
  socket: /var/run/docker.sock
  token: idkbruh
  session: {}
  # yaml-language-server: $schema=./schema.json

Setup the database

pnpm --dir packages/db run drizzle-kit push

Setup workspaces

pnpm --dir packages/db run seed
pnpm --dir workspaces run build

Dev Server

Start the development server. This runs the web server and the daemon in development mode.

pnpm dev
Edit on GitHub

Last updated on

On this page