Skip to main content
Version: 4.0.0-preview

Example Projects

The expressots/examples repository ships 15 focused projects for ExpressoTS v4 (pinned to 4.0.0-preview.3.4 on main). Each example is a standalone app you can clone, run, and test without reading the whole framework first.

Pick one row below, open the GitHub folder, follow its README, then read the linked doc page for the full explanation.

Quick start

git clone https://github.com/expressots/examples.git
cd examples
cd 01-starter-api
npm install
cp .env.example .env
npm run dev

Run the full test matrix from the repo root:

./scripts/test-all.sh

Pre-v4 examples are archived under previousVersions.

All 15 projects

#ProjectWhat it teachesDocumentationGitHub
01starter-apiMinimal REST API, middleware preset, health checkFirst stepsOpen
02jwt-authenticationJWT, AuthProvider, login, guardsAuthenticationOpen
03authorization-rbacRoles, permissions, ownership guardsGuards, AuthorizationOpen
04database-inmemoryInMemoryDBProvider, repository patternDatabase integrationOpen
05database-postgresPostgreSQL provider, IBootstrap / IShutdownDatabase integrationOpen
06database-prismaPrisma ORM lifecycleDatabase integrationOpen
07file-upload@FileUpload, multerFile uploadOpen
08eventsType-safe events, @OnEventEventsOpen
09message-queueBullMQ + Redis providerLifecycle, Provider ecosystemOpen
10redis-cacheRedis cache provider, health checksProvider ecosystemOpen
11testingUnit, integration, load testingTestingOpen
12docker-composePostgres + Redis sidecars, Docker devDeployment, Container developmentOpen
13micro-apimicro() lightweight servicesMicro APIOpen
14interceptorsAOP interceptors, @UseInterceptorsInterceptorsOpen
15openapi-studioOpenAPI generation + Studio workflowOpenAPI, StudioOpen

By topic

TopicExamples
Getting started01-starter-api
Authentication & authorization02-jwt-authentication, 03-authorization-rbac
Databases04-database-inmemory, 05-database-postgres, 06-database-prisma
HTTP & files07-file-upload
Async & infrastructure08-events, 09-message-queue, 10-redis-cache
Quality & ops11-testing, 12-docker-compose
Advanced13-micro-api, 14-interceptors, 15-openapi-studio

Requirements

  • Node.js >= 20.18.0
  • npm (or pnpm/yarn)
  • Optional: Docker for Postgres, Redis, and compose-based examples (05, 06 integration tests, 09, 10, 12)

Examples 05 and 06 skip database integration tests by default (SKIP_DB=1). Run npm run test:integration when Postgres is available.