Skip to content

pigulla/modern-nestjs

Repository files navigation

Logo

A simple skeleton for modern NestJS applications.

Synopsis

This repository provides a highly opinionated, basic setup for modern NestJS applications. It's not intended to be a turnkey solution but a solid starting point for the most common use cases. You can, should and will need to tweak and adapt it to your needs and personal preferences.

Key Features

Missing Features

  • We can almost run the code natively using type stripping. To make this work we need the rewriteRelativeImportExtensions option introduced in TypeScript 5.7 - unfortunately this doesn't play well with subpath imports because those are absolute. Guess we have to either wait for TypeScript to fix this or get rid of the subpath imports.
  • Maybe add linting for Markdown (markdownlint looks nice enough),

Other Notes

  • We use abstract classes instead of interfaces solely because they can then double as injection tokens (interfaces don't exist at runtime, abstract classes do). Note that the concretions don't extend but implement them.

About

Highly opinionated, modern setup for NestJS-projects.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published