Sign inSign up

flosspicks/crossbell-f

By flosspicks

•Updated over 2 years ago

Image
0

1.7K

flosspicks/crossbell-f repository overview

⁠Nestjs Template

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.

⁠Features

⁠Guide

⁠Development

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
⁠Deployment

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
⁠Migrate database

Development:

npm run prisma:migrate:dev

Production:

npm run prisma:migrate:deploy

Tag summary

Content type

Image

Digest

sha256:4278486ed…

Size

630.3 MB

Last updated

over 2 years ago

docker pull flosspicks/crossbell-f