Skip to content

NestJS + TypeORM + PostgreSQL boilerplate to be freely improved or copied.

Notifications You must be signed in to change notification settings

fabcotech/nest-typeorm-boilerplate

Repository files navigation

NestJS, TypeORM and postgreSQL boilerplate

state of the workflow

I've build many NestJS + TypeORM + PostgreSQL projects, this is a boilerplate to be used and/or extended by anyone who wants to 😀🎈⭐⭐.

It includes :

  • Nest JS + TypeORM + postgreSQL all setup and ready to be extended
  • A github continuous integration that lint + build + test
  • Simple email/password auth API on POST /auth/signup and POST /auth/login
  • PostgreSQL database set up with two tables (user and session)
  • Sequential test suite working with jest

Run postgreSQL in docker

docker compose --file docker-pg.yml up
# copy .env.example to .env

# have postgreSQL running on localhost:5432
# eventually create a postgreSQL database
# CREATE DATABASE nesttypeorm;

# This script will create DB from .env and db/dump
node createAndPopulate.js

yarn
yarn migration:run
yarn start:dev
yarn test

About

NestJS + TypeORM + PostgreSQL boilerplate to be freely improved or copied.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published