@chromasdk/chromajs
v0.1.1
Published
JavaScript client for the Razer Chroma REST API
Downloads
143
Readme
Chroma.js
Chroma.js is a library that provides a simple interface to interact with Razer's Chroma REST API.
Building from source
After cloning this repository the Typescript Code needs to be transpiled.
This is done either by using your IDE (VS-Code is configured) or by going into the "sdk" directory and running:
npm install
npm run build
or
yarn install
yarn run build
Now the dist
folder contains all the needed files.
Afterwards you can start the example by executing the following in the example folder:
npm install
npm run dev
or
yarn install
yarn run dev
This will start a Javascript development Server running on http://localhost:8080
To run the Node.js version just do in the example directory:
yarn install
yarn run build
node dist/Server.bundle.js