0.7.4 • Published 2 months ago

rook-core v0.7.4

Weekly downloads
-
License
MIT
Repository
-
Last release
2 months ago

RookMotion Core

RookMotion Core is a React Hooks library that contains the main calls to RookMotion backend to get easy the integration with RookMotion services, in this package you could find a list of modules in order to do the calls, each calls are grouped in modules this modules will be described next.

Installation

npm i rook-core

or

yarn add rook-core 

This package needs a database that should be install and configure, in order to do that please do this installation. (Follow only the installation tutorial)

Configuration

In order to get active this package you need to set a provider in the highest position of your components tree, you need to use RookWrapper component in order to pass properties into your application necessary to start this package.

import { RookWrapper } from 'rook-core';

...

<RookWrapper
  config={{
    authorization: 'YOUR-BEARER-TOKEN',
    tokenLevel: 'YOUR-CLIENT-TOKEN',
    url: 'BASE URL SANDBOX OR PRODUCTION',
}}>
  <YOUR-COMPONENTS />
</RookWrapper>

Package Content

  • useRookPreference() - Manage the last sensor used by the user
  • useRookSensor() - Manage the sensors that a user have
  • useRookSummaries() - Get the summaries of a training and the rewards obtened by a user
  • useRookTrainings() - Manage the data of a training
  • useRookUser() - Manage the profile of the user
0.7.4

2 months ago

0.7.3

2 months ago

0.7.2

2 months ago

0.7.1

2 months ago

0.7.0

2 months ago

0.6.2

8 months ago

0.6.1

9 months ago

0.6.0

1 year ago

0.5.0

2 years ago

0.4.0

2 years ago

0.3.8

2 years ago

0.3.7

2 years ago

0.3.6

2 years ago

0.3.5

2 years ago

0.3.4

2 years ago

0.3.3

2 years ago

0.3.2

2 years ago

0.3.1

2 years ago

0.2.1

2 years ago

0.2.0

2 years ago

0.1.1

2 years ago

0.1.0

2 years ago