nestjs-postgres-boilerplate
nestjs-postgres-boilerplate copied to clipboard
A local development setup or boilerplate for Nest.js framework with PostgreSQL and pgAdmin4 using Docker Compose.
NestJS Framework Boilerplate (PostgreSQL)
A local development setup or boilerplate for Nest.js framework with PostgreSQL and pgAdmin4 using Docker Compose.
Quick Start
- Install Node.js - for IDE type checking.
- Install Yarn - for IDE type checking.
- Install Docker Compose and make sure it is running in the system background.
- Clone the app:
git clone [email protected]:dominicarrojado/nestjs-postgres-boilerplate.git
- Install npm packages - for IDE type checking.
cd nestjs-postgres-boilerplate
yarn install --frozen-lockfile
- Build and run the Docker image.
yarn docker-compose:dev
- Access the app at http://localhost:3000.
- 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)
- Build and run the Docker image.
yarn docker-compose:test:watch
- 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.