GithubHelp home page GithubHelp logo

architecture-tutorial's Introduction

npm i

npm run dev
npx jest --watchAll

백엔드 코드

https://github.com/dngwoodo/todo-backend

npm i

node app.js

프로젝트 설명

  • React는 단순히 랜더링 하는 도구로 사용한다.
  • 상태관리는 Mobx를 활용하여 React에서 떼어낸다.
  • 도메인, 서비스 클래스는 의존성 주입을 통해 최상위 컴포넌트(App or Page)에 할당한다.(prop drilling을 제거하고자 context이용)
  • repository <-> service <-> (domain <-> Mobx) <-> container <-> UI 와 같이 상호작용한다.

해결되지 않은 부분

  • (domain <-> Mobx) 이 부분이 해결되지 않았다. 현재 mobx가 도메인로직에 침투해 있는 상태이다.
    • superclass를 만들어서 makeAutoObserable을 constructor에서 사용해봤지만 지원하지 않는다.
    • 도메인과 store간의 관계가 끊어지지 않는다면 굳이 mobx를 사용할 필요성을 느끼지 못하겠다.
  • Service와 Repository의 역할이 분명하지 않다. Service에서 처리해야되는 로직과 Repository에서 처리해야 되는 로직을 명확하게 구분해야 될 것 같다.

architecture-tutorial's People

Contributors

dngwoodo avatar wkddngus5 avatar

Stargazers

 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.