This repository is a template for building full-stack applications using SST (Serverless Stack) with separate backend, frontend, and shared workspaces. It includes TypeScript, testing with Vitest, linting with Biome, and sensible defaults for infrastructure and deployment.
- Install dependencies (root uses npm workspaces):
npm install- Start local development (SST):
npm run dev- Run backend tests:
cd backend
npm testThe root package.json exposes common scripts. Notable ones:
npm run prep— install dependenciesnpm run dev— runsst devfor local developmentnpm run deploy— deploy with SSTnpm run remove— remove deployed stacksnpm run lint— run Biome checks and auto-fix where possible
There are also workspace-specific scripts in backend, frontend, and shared.
infra/— SST infra entry (infra/index.ts).backend/— backend workspace (handlers, tests, services).frontend/— frontend workspace.shared/— shared types and utilities used by both frontend and backend.logger/,utils/,types/,constants/— repository-wide helpers.
This repository includes a targeted Copilot instruction file to help AI assistants produce code consistent with the project's conventions and constraints. See .github/COPILOT_INSTRUCTIONS.md for guidance on style, testing, commit messages, and common patterns.
When using Copilot or any AI pair programmer with this repo, prefer small, focused suggestions and include tests for new behavior. Don't commit secrets or credentials. Follow the repo's linting and formatting rules before opening a PR.
- Create a branch from
setup-init(or the appropriate branch). - Run tests and linters locally.
- Open a PR with a clear description and include tests for new logic.
MIT