Giter Club home page Giter Club logo

aefpa_backend_node's Introduction

Nest Logo

A progressive Node.js framework for building efficient and scalable server-side applications.

NPM Version Package License NPM Downloads CircleCI Coverage Discord Backers on Open Collective Sponsors on Open Collective Support us

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.

aefpa_backend_node's People

Contributors

hyeon-aa avatar turastory avatar yeomjaeseon avatar

Stargazers

 avatar  avatar

Watchers

 avatar  avatar

aefpa_backend_node's Issues

resize function lambda trigger timing

  • 현재는 s3에 원본 이미지 생성되면 lambda function 실행되도록 trigger걸어놈.
    -> 클라에서 resize이미지 요청했는데 resize진행중이라 not found응답될수도 있을듯. .. (resize하는데 delay가 존재함.)

-> aws api gateway에 lambda function trigger를 걸어서 resize 이미지 해당 uri로 요청할때마다 resize하는게 어떨까? 그럼 비동기적인 작업에 대해 처리할수 있을듯..!

에러 형식

몇 가지 이유로 에러 형식을 커스텀하게 정의할 필요가 있어요.

  • 기본적인 HTTP Status Code 만으로는 에러를 충분히 표현할 수 없음
    • e.g. 같은 Bad Request 여도 길이가 너무 긴지, 형식이 잘못된 건지 등 여러 케이스가 있음.
  • 에러에 path, payload 등의 정보가 같이 들어가면 디버깅할 때 편함
    • dev일 때는 payload를 포함하고, prod일 때는 생략하는 식으로 조절할 수 있다

그래서.. 다음과 같은 형식의 에러를 제안합니다.

interface ErrorResponse {
  error: {
    status: number;
    message?: string;
    path?: string;
    timestamp?: string;
    payload?: any;
  }
}

Nest.js의 Exception Filter를 사용하면 이런 커스텀 에러를 쉽게 구현할 수 있어요.

홈 상태 정보 조회 변경

  • 자신의 상태만이 아니라 친구 상태도 조회할 수 있어야 합니다.
  • 끼록 목록을 내려줘야합니다.
  • 간단 끼록 + 상세 끼록을 내려줍니다

README 만들기

README에 들어갈 내용

  1. 이 레포는 무슨 레포인가?
  2. 어떤 기술이 사용됬는가?
  3. 실행 방법은??

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.