nestjs-pg-react-tailwind-boilerplate Tailwind Templates

Nestjs Pg React Tailwind Boilerplate

This boilerplate provides a ready-to-use setup for hackathons or other coding challenges. It includes NestJS and PostgreSQL for the backend, React for the frontend, and Tailwind CSS for styling, mostly written in TypeScript.

Monorepo Boilerplate

TypeScript Nest.js Postgres React Tailwind

Prerequistes

  • node > 18.0.0
  • yarn

Monorepo run

Backend

  • `docker run --name postgres-db -p 5432:5432 -e POSTGRES_USER=user_demo

-e POSTGRES_PASSWORD=pg_strong_password -e POSTGRES_DB=demo_db -d postgres`

Frontend

Inital Setup Notes

PG

  • docker pull postgres
  • `docker run --name postgres-db -p 5432:5432 -e POSTGRES_USER=user_demo

-e POSTGRES_PASSWORD=pg_strong_password -e POSTGRES_DB=demo_db -d postgres`

Nest.js

  • npm i -g @nestjs/cli
  • nest new project-name
  • create src/.env file
  • yarn backend add @nestjs/config
  • ConfigModule.forRoot({ envFilePath: '.env', })

Prisma

React/Tailwind

Top categories

Loading Svelte Themes