This is an opinionated template for Nestjs projects.
I found that there are many Nestjs projects in my career, and they are all similar in structure. So I created this template to make it easier to start a new Nestjs project.
Init environment variables:
cp .env.example .env
Install dependencies:
npm install
Start DB docker:
npm run docker:db
Generate Prisma client:
npm run prisma:generate
Migrate database:
npm run prisma:migrate:dev
Run the app:
npm run start:dev
Docker:
# building new NestJS docker image
docker-compose build
# or
npm run docker:build
# start docker-compose
docker-compose up -d
# or
npm run docker
In Node.js Environment:
npm install
npm run build
./start_prod.sh
Development:
npm run prisma:migrate:dev
Production:
npm run prisma:migrate:deploy
Content type
Image
Digest
sha256:4278486ed…
Size
630.3 MB
Last updated
over 2 years ago
docker pull flosspicks/crossbell-f