Skip to content

A local development setup or boilerplate for Nest.js framework with PostgreSQL and pgAdmin4 using Docker Compose.

Notifications You must be signed in to change notification settings

dominicarrojado/nestjs-postgres-boilerplate

Folders and files

NameName
Last commit message
Last commit date

Latest commit

e6df82c · Jun 21, 2022

History

30 Commits
Apr 13, 2022
Apr 13, 2022
Apr 15, 2022
Apr 13, 2022
Apr 13, 2022
Apr 13, 2022
Apr 13, 2022
Apr 13, 2022
Apr 13, 2022
Jun 21, 2022
Jun 7, 2022
Jun 7, 2022
Apr 13, 2022
Jun 7, 2022
Apr 13, 2022
Apr 15, 2022
Apr 15, 2022
May 6, 2022
Apr 13, 2022
Apr 13, 2022
Apr 13, 2022
Apr 13, 2022
Jun 6, 2022

Repository files navigation

NestJS Framework Boilerplate (PostgreSQL)

CI/CD

A local development setup or boilerplate for Nest.js framework with PostgreSQL and pgAdmin4 using Docker Compose.

Quick Start

  1. Install Node.js - for IDE type checking.
  2. Install Yarn - for IDE type checking.
  3. Install Docker Compose and make sure it is running in the system background.
  4. Clone the app:
git clone [email protected]:dominicarrojado/nestjs-postgres-boilerplate.git
  1. Install npm packages - for IDE type checking.
cd nestjs-postgres-boilerplate
yarn install --frozen-lockfile
  1. Build and run the Docker image.
yarn docker-compose:dev
  1. Access the app at http://localhost:3000.
  2. Make file changes and it will automatically rebuild the app.

Running All Tests

yarn docker-compose:test

Running All Tests (with coverage)

yarn docker-compose:test:cov

Running Tests (Watch)

  1. Build and run the Docker image.
yarn docker-compose:test:watch
  1. Make file changes and it will automatically rerun tests related to changed files.

Build For Production

yarn docker-compose:prod

VSCode Extensions

Learn

Learn how to build this setup or boilerplate here.