NestJS, Prisma, MySQL, Typescript, Jest, Swagger를 이용한 BLOG API
- node >=20.0.0
- pnpm >=10.0.0
$ pnpm install# development mode
$ pnpm run start
# watch mode
$ pnpm run start:dev
# production mode
$ pnpm run start:prod# unit tests
$ pnpm test
# unit tests watch mode
$ pnpm run test:watch
# unit tests with coverage
$ pnpm run test:cov
# e2e tests
$ pnpm run test:e2e# generate prisma client
$ pnpm prisma generate
# database migration
$ pnpm prisma db seed --preview-feature
# run migration
$ pnpm prisma migrate dev -name init
# revert migration
$ pnpm prisma migrate reset# .env
PORT=3000
DATABASE_URL="mysql://username:password@localhost:3306/blog?schema=public"
JWT_SECRET=MDBjMWJlMzc4M2JhNGExY2FmNTRkZmU0NjlhNTRjYmY=👤 Changhoon Jee chjee71@gmail.com
- Github: @chjee
Give a ⭐️ if this project helped you!
This README was generated with ❤️ by readme-md-generator