Skip to content

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Repository files navigation

Platform sandbox

A small NestJS + GraphQL service over two slices of a learning platform: publishing classes and teams of people.

Getting started

bun install
bun run dev

The API is then at http://localhost:4000/graphql. It runs on in-memory adapters with seed data, so nothing else needs to be installed.

query {
  team(id: "team-northwind") {
    name
    planCode
    members { name email }
  }
  class(id: "class-watercolour") {
    title
    status
  }
}

Checks

bun run typecheck    # tsc --noEmit
bun run lint         # biome check .
bun run test         # bun test

Postgres (optional)

The service runs entirely in memory by default. To point it at a real database:

cp .env.example .env
bun run db:up        # Postgres 16 in Docker, on :5433
bun run db:migrate
bun run db:seed
ADAPTER=postgres bun run dev

bun run db:down stops it again.

Where things live

CONTEXT.md describes the domain language and how the repository is arranged. docs/adr holds the decisions behind it.

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Used by

Contributors

Languages