LoginSignup
2
0

More than 5 years have passed since last update.

caliper-jsのインストール

Last updated at Posted at 2018-08-02

IMS Caliperは学習支援システム(LMS)などの学習履歴,イベントのデータを保存,分析,利用するための共通仕様です。Caliperではデータを送出する側のインターフェースをSensor APIと呼びます。caliper-jsはCaliper Sensor APIのJavaScript版の参照実装です。ここではcaliper-jsのインストールと簡単な例を紹介します。

インストール

インストールにはNode.jsとnpmが必要です。先にインストールしてください。

まず,GitHubからクローンします。caliper-common-fixturesはテストに必要です。

git clone https://github.com/IMSGlobal/caliper-js
git clone https://github.com/IMSGlobal/caliper-common-fixtures

caliper-jsのディレクトリでbrowserifygrunt-cliおよびcaliper-jsが依存するライブラリをインストールします。

npm install -g browserify
npm install -g grunt-cli
npm install

caliper-jsをビルドします。テストが走るときにcaliper-common-fixturesを使用します。

grunt

dist/caliperSensor-1.1.3.js のようにライブラリができているはずです。

2
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
2
0