Code Monkey home page Code Monkey logo

nestjs-user-api's Introduction

Coverage:branches Coverage:functions Coverage:lines Coverage:statements

Description

Nest framework TypeScript starter repository.

Installation

$ npm install

Running the app

# development
$ npm run start

# watch mode
$ npm run start:dev

# production mode
$ npm run start:prod

Test

# unit tests
$ npm run test

# e2e tests
$ npm run test:e2e

# test coverage
$ npm run test:cov

Support

Nest is an MIT-licensed open source project. It can grow thanks to the sponsors and support by the amazing backers. If you'd like to join them, please read more here.

Stay in touch

License

Nest is MIT licensed.

nestjs-user-api's People

Contributors

yujin-min avatar f-lab-bot avatar

Stargazers

 avatar

Watchers

 avatar  avatar

nestjs-user-api's Issues

[기능 추가] audit (감사) 을 적용한다

배경

  • pub-sub pattern 을 실제로 코드에 적용하는 경험을 가져본다

기능 상세

  • 일반적인 application log 외에 돈과 관련된 비즈니스 로직에 대해서는 audit 로그가 남아야 한다
    • application log 와는 따로 분리되어 저장되어야 한다
    • 단, 구현은 event pattern 을 활용한 pub-sub 방식으로 구현한다

[testing] integration test 추가

배경

  • in-memory DB 를 활용해서 integration test 를 더 안정적으로 수행하는 경험을 합니다

이슈 상세

  • SQLite 를 활용한 integration test 를 3개 이상 작성합니다

[기능 추가] 디플레이션 시나리오 추가

배경

application 에 복잡한 비지니스 로직을 추가하는 경험과 batch 를 다루는 경험을 진행합니다

기능 설명

매일 마다 모든 사용자가 가지고 있는 balance 는 1% 씩 감소됩니다. business 사용자의 경우에는 특별 혜택이 있어, 줄어드는 balance 에 대해 point 로 다시 지급해 줍니다.

기능의 의도

  • 학습한 패턴을 가지고 실제 코드에서 사용하는 경험을 갖습니다
  • transaction 개념을 정확히 이해하고, 코드로 정확히 표현합니다
  • batch 에 대한 경험을 갖습니다

[기능 추가] test 도입

배경

  • 테스트에 대해 경험한다

기능 상세

  • (required) package.json script 에 test metric 지표를 추출할 수 있는 툴을 적용해 놓는다 (jest 등 사용)
  • (required) line coverage 를 10% 이상 달성한다
  • (optional) test 관련 metric 지표에 대해 학습하고, 단순히 line coverage 만 목표로 잡지 않고 좀 더 세분화된 test metic 목표를 설정한다
  • (optional) test 관련 CI 를 개선한다
    • PR 을 작성하면 자동으로 test metric 이 측정되서 PR 에 보여준다
    • 기준 metric 지표를 넘지 못하면 PR merge 가 되지 않도록 시스템 적으로 막는다

CI/CD 적용하기

이슈 상세

  • git 에 코드를 push 하면 (main 브랜치) 배포까지 되어야 한다 (AWS)
  • github actions 를 활용한다

[testing] performance test

이슈 상세

  • 특정 API 하나에 대해 perf test 를 수행 및 TPS 측정
  • TPS 를 개선시킨다

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.