Skip to content
/ NkznTodo Public

Layered Architecture based React application structure sample.

Notifications You must be signed in to change notification settings

Nkzn/NkznTodo

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

49 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

NkznTodo

Layered Architecture based React application structure sample.

ss

Samples

  • multi-package: punctuate Layered Architecture with monorepo.
  • single-package: punctuate Layered Architecture with plain directory.

multi-package

This sample uses monorepo with lerna.

structure

package description
presentation-redux create-react-app based TypeScript Web App
application Application Service (No Redux Dependencies)
domain Type Definition & Behavior Functions (No Redux Dependencies)
infrastructure Dummy Networking (No Redux Dependencies)

Monorepo structure with lerna allows us to build dependency graph between packages. domain is the most pure package, and presentation is most complex package. If you build all packages, lerna considers dependency. lerna run *** command executes commands in order of dependencies.

dependency-graph

Getting Started

At first, install with yarn.

$ yarn install

next, build TypeScript in the infrastructure, domain, application-redux.

$ yarn build:tsc

finally, start webapp in the presentation-redux.

$ cd packages/presentation-redux
$ yarn start

Characteristic codes

single-package

structure

The single-package punctuate Layered Architecture with plain directory.

This is dangerous structure because domain code can call presentation code.

Getting Started

$ yarn install
$ yarn start

That's all!

donate

Welcome!

kyash

About

Layered Architecture based React application structure sample.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published