Skip to content

chjee/nestjs-graphql-prisma-hr

Repository files navigation

Welcome to nestjs-graphql-prisma-hr 👋

Version License: UNLICENSED

NestJS, GraphQL, Prisma, MySQL, Typescript, Jest, Supertest를 이용한 HR API

Prerequisites

  • node >=18.17.1
  • npm >=9.6.7

Install

$ npm install

Usage

# development mode
$ npm run start

# watch mode
$ npm run start:dev

# production mode
$ npm run start:prod

Run tests

# unit tests
$ npm run test

# unit tests with watch mode
$ npm run test:watch

# unit tests with coverage
$ npm run test:cov

# e2e tests
$ npm run test:e2e

Other commands

# generate prisma client
$ npx prisma generate

# database migration
$ npx prisma db seed --preview-feature

# run migration
$ npx prisma migrate dev -name init

# revert migration
$ npx run migrate reset

.env file

PORT=3000
DATABASE_URL="mysql://username:password@localhost:3306//hrms?schema=public"
JWT_SECRET=MDBjMWJlMzc4M2JhNGExY2FmNTRkZmU0NjlhNTRjYmY=

Author

👤 Changhoon Jee chjee71@gmail.com

Show your support

Give a ⭐️ if this project helped you!


This README was generated with ❤️ by readme-md-generator

About

NestJs, GraphQL, Prisma, Typescript, Passport-jwt, JWT, Jest, Supertest,. etc.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors