Skip to content

Latest commit

 

History

History
64 lines (42 loc) · 786 Bytes

README.md

File metadata and controls

64 lines (42 loc) · 786 Bytes

Hue Api

Quick/Simple Api to Dialog/Manage Hue installation. Purpose for this API is to be simple enought to support multiple client ( Phone / App / Terminal )

Setup Project

  1. Install dependancies
npm run ci
  1. Get your Hue IP
npm run getHueIp
  1. Create your Username
npm run createUser --ip=<YOUR_HUE_IP>
  1. Copy the .env.example in your .env
cp .env.example .env
  1. Update your .env with your value HUE_BRIDGE_USERNAME and HUE_BRIDGE_IP

  2. Start using your API

npm run start

Basic NPM command

  1. Build the project:
npm run build 
  1. Use nodemon while coding:
npm run watch
  1. Run your test:
npm run test
  1. Use eslint:
npm run lint