who-client
JavaScript Client Library for Who.
Usage
Development
Grab NVM and go:
nvm installnvm exec npm install
You should be ready to go! Check by running the tests:
nvm exec npm test
⚡️ ⚡️ DEV MODE ⚡️ ⚡️
Run this to ⚡️ ⚡️ ENTER DEV MODE: ⚡️ ⚡️
nvm exec npm run watch
In Dev Mode:
- A server will be started to the demo server at http://localhost:8080. This will live reload on
lib
changes. - The specs will be run on every
lib
orspec
change. - Webpack will bundle on every
lib
change.
For more information on the tasks you can do, check out package.json.
Troubleshooting
Sometimes when running Dev Mode, you can encounter:
> webpack -d --watch
events.js:141
throw er; // Unhandled 'error' event
^
Error: listen EADDRINUSE 127.0.0.1:8080
...
The test server isn't very good at shutting itself down correctly. Use kill $(lsof -t -i:8080)
to get rid of any stray Node.JS instances and restart Dev Mode.