Skip to content

Commit 02bd202

Browse files
committed
Coding architecture is defined
1 parent c6aac0e commit 02bd202

File tree

2 files changed

+15
-1
lines changed

2 files changed

+15
-1
lines changed

reactjs/README.md

Lines changed: 15 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,17 @@
11
# ASP.NET Boilerplate ReactJS Template
22

3-
The React.js integration for ABP Boilerplate framework.
3+
The React.js integration for ABP Boilerplate framework. This template is built on React+Mobx+Typescript. SOLID, SoC principles are used.
4+
5+
# Architecture
6+
7+
This framework is designed by utilizing MVC design pattern and layered architecture as follows:
8+
9+
- All Backend communications are done by service layer.
10+
- For every Container Component there exists one Store and one Model.
11+
- Store has state of application so it consumes service See "Defining data stores". All service functions will be called in store not in Component. Component executes Store actions when state is needed.
12+
- Presentational Component can use store directly by injecting the store or Props from Container Component can be passed in it.
13+
- Container or Presentational Component can invoke store actions and automatic rendering of component will be done by Mobx.
14+
15+
InversifyJS IoC container is used to ensure dependency inversion. All of services has one interface and one implementation, so mocks can be used easily when writing tests.
16+
17+
![](images/architecture.jpg)

reactjs/images/architecture.jpg

25.5 KB
Loading

0 commit comments

Comments
 (0)