black-lion v1.1.1
black-lion
The core of your Arus
project, BlackLion
is the link between the front and backend of your project. It uses Redux
to store data and trigger changes within your app.
Redux uses a combination of Reducers
and Actions
to handle changes to state within an app.
Reducers
Reducers handle the actual modification of the state given a specified action.
Actions
Actions tell the Reducer what is going on so that it can modify the state appropriately.
Further Reading
If you wish to learn more about Redux please help yourself to this great documentation
Adding Services
1) create actions in ./lib/actions/<ServiceName>Actions.js
2) create a reducer in ./lib/reducers/<ServiceName>Reducer.js
3) add <serviceName>State
field to the reducer
object in ./index.js
with a value of the imported <ServiceName>Reducer.js
file
4) add <ServiceName>Actions
field to the actions
object in ./index.js
with a value of the imported <ServiceName>Actions.js
file
5) add mock response data to the ./test/lib/mocks.js
file and export them
6) add a mock service call to the ./test/lib/Connector.js
file that returns the mock data you just created
7) create tests
8) make sure all tests are still passing by running npm test
9) increment the third digit of the version
10) add your name and email to the contributors
field in package.json
11) submit a pull-request to the dev
branch
See Also
9 years ago
9 years ago
9 years ago
9 years ago
9 years ago
9 years ago
9 years ago
9 years ago
9 years ago
9 years ago
9 years ago
9 years ago
9 years ago
9 years ago
9 years ago
9 years ago
9 years ago
9 years ago
9 years ago
9 years ago
9 years ago
9 years ago
9 years ago
9 years ago
9 years ago
9 years ago
9 years ago
9 years ago
9 years ago
9 years ago
9 years ago
9 years ago
9 years ago
9 years ago
9 years ago
9 years ago
9 years ago
9 years ago
9 years ago
9 years ago
9 years ago
9 years ago
9 years ago
9 years ago