In this project, we’re going to build a NestJS starter repo which will act as a foundation for all other projects in the course.

Then at the start of future projects, we’ll git clone this starter repo so we can skip a bunch of admin and setup each time we start a project.

The starter repo also serves as an excellent foundation for any future projects you start outside of the course!

Here’s what’s included in the starter repos:

  • Adding to the tsconfig.json file

  • Setting up the ConfigModule and environment variables for Jest

  • Enforcing consistent HTTP response structure

  • Configuring some basic HTTP security

  • Adding whitelisted validation to the NestJS server

  • Setting up NestJS logging

  • Docker compose set up for a Postgres database & Redis

  • Prisma setup (the ORM we’ll be using in each project to interact with the database)

  • Redis and CacheService setup

  • Jest config (including env variables)

  • Setting up a CI Pipeline using Github Actions

Here's the Github repo if you want to check out the full code:
https://github.com/tomwray13/nestjs-starter

And here's the deployed app if you want to give it a spin in Postman:
https://nestjs-starter-production-363d.up.railway.app/