Goals
All business logics are implemented by business modules
in the CabloyJS Project
In the following tutorials, we take the module test-party
as an example to learn the basic concepts and usage of the following features:
- How to create a
business module
- Basic process of
frontend and backend development
- Usage of backend
configuration
andi18n
- Usage of frontend
configuration
andi18n
- Usage of backend
database
- Usage of backend
database transaction
- Usage of backend
middleware
- Usage of
menu authorization
- Basic concepts and usage of
Atom
- Usage of
atom authorization
Test-Driven
development
Preparation
Before continuing the tutorials, please confirm the following two points:
1. Don’t forget to start the backend service
and frontend service
- 1$ npm run dev:backend
- 2$ npm run dev:front
2. Install Suite: test-party
In the new version of CabloyJS, the module test-party
is located in the suite test-party
, which contains sample codes in more scenarios
- For details, please refer to: suite test-party
Use the following instruction to install the suite test-party
:
- 1$ npm run cli :store:sync test-party
Comments: