Eve library

@demeter/api

Other

Revision 1

On this page

Demeter Home Gardening API — Fastify-based REST API

Backend service. See the Dockerfile / docker-compose.yml in the repo for production-like local runs, or use the dev script below for in-process iteration.

Scripts#

Command Definition
pnpm start node dist/server.js
pnpm dev tsx --watch src/server.ts
pnpm build tsc --build
pnpm clean rm -rf dist .tsbuildinfo
pnpm test vitest run
pnpm test:watch vitest
pnpm typecheck tsc --noEmit

Layout#

  • scripts/
  • src/

Working on this package#

The fastest local loop is via Nx:

bash
pnpm nx test demeter-api
pnpm nx lint demeter-api
pnpm nx build demeter-api

When Nx is unhappy (usually because another worktree has duplicate project names), bypass it with the underlying tools from this directory:

bash
npx tsc --noEmit
npx vitest run

See the root README for monorepo-wide conventions (catalog deps, commit format, git workflow). See the Contributor Guide for the full PR workflow.