English|中文
At here we would build an Online-Shop based on Nature. The project will involves order, pay, warehouse and delivery domain. Even more we make some statistics through multi-dimensions.
Don't worry about the complexity, we start at simple first, then step by step to achieve the final target. Even thou I think the code lines are great reduced compare to the traditional development, conservative estimate they are less than half.
If you are the first time to know Nature, It's best to view this demo from top to bottom.
Each chapter include little key-points of Nature, this let you come to know Nature.
In the whole demo description. there are some sections titled with "Nature key points" that would mind your attention how to do the thing in Nature way.
chapter | digest | key points |
---|---|---|
prepare | prepare for the demo | how to run Nature |
generate order | user commit an order into to Nature | Meta , master meta , define target-state, Converter and how to commit business object to Nature |
pay for the bill | user can pay many times for the big bill. | upstream select, state conflict control |
stock-out | the warehouse system is slow to process the order's goods | input state instance, callback |
delivery | collaborate with the third-party | parameterization input |
signed | user received the goods | delay converter |
The following unfinished yet.
chapter | digest | key points |
---|---|---|
sale statistics | from goods view, make statistics freely, extensible, no coding. | context, embedded counter, serial process |
user consumption data | make data which can be got by user id, such as order list | parallel process |