theiterators / ts-backend-template

Typescript REST API boilerplate

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

TS BACKEND TEMPLATE

This is a simple Typescript REST API boilerplate featuring ts-rest, express, slonik and zod.

Features

  • Typescript setup
  • Type-safe REST API following principle "parse, don't validate"
  • CRUD example
  • Healthcheck endpoint
  • Logging, with correlation id and context support
  • Error handling
  • Type-safe database access
  • Type-safe config
  • Strongly-typed domain and DTOs
  • OpenAPI documentation
  • Flyway-based migrations
  • Basic Firebase auth integration

TODO

  • Removing boilerplate from repository file (smartrepos)
  • Docker image packaging
  • Some kind of observability stack
  • Test stack
  • Background jobs

About

Typescript REST API boilerplate

License:MIT License


Languages

Language:TypeScript 100.0%