TrainStack
Developers

Backend

Fastify API server, database, and authentication.

The backend is a Fastify server running on Bun with PostgreSQL via Drizzle ORM and authentication via Better Auth. This page covers the server structure, how routes and services are organized, and how to work with the database and auth system.

Server Structure

Database and Migrations

Authentication

On this page