Code Monkey home page Code Monkey logo

mimic's Introduction

Mimic

Nest.js를 모방한다는 의미로 mimic이라고 이름을 붙였습니다.
구현 사양이 작습니다. 핵심 flow위주로 작성되어 있습니다.
필요하다면 데코레이터를 작성하고 factory에서 추가하는 식으로 기능을 확장할 수 있습니다.

1. src/에는 Nest.js를 사용했을 경우를 가정한 서버 소스코드가 있습니다.
2. 프레임워크 코드는 mimic/에 작성되어있습니다.

구현 중점

  1. Nest.js를 사용하는 코드와 동일한 형태의 코드 작성 가능
  2. reflect-metadata를 이용한 metadata 수집 및 조작
  3. decorator를 이용해 metadata를 수집하고 factory에서 context구성
  4. 수집된 metadata를 이용, 프레임워크 이용자가 기대하는 동작과 연결점으로 proxy객체 활용

구현되지 않은 것들

  1. 트리 형태의 context collect & resolve -> metadata조작 및 빌드가 핵심이기 때문에 제외
  2. guard, interceptor등 -> 프로젝트 목적에서 벗어난다고 생각해서 제외
  3. express 기반 구현 -> 사양이 작아 express의 극히 일부만을 사용하게 되기 때문에 native module http로 구현
  4. 그 외 수 많은 내장 기능들(nest-cli, 각종 out-of-box 모듈 등)

mimic's People

Contributors

bjs-kr avatar

Watchers

 avatar

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.