/metal-bat-api

Primary LanguageJavaScriptGNU General Public License v2.0GPL-2.0

metal-bat-api

Expressjs API server 🎉

To get a valid Agroa access token:

https://localhost:3000/access-token/?channel={channel}&user={bar}

Params:

  • channel: channel name
  • user: user id. Optional, if not passed it, token will created by the default user id which is 0.

Running locally

Debug mode

  1. NODE_ENV=debug node --inspect-brk ./bin/www
  2. The terminal will log out something like: Debugger listening on ws://127.0.0.1:9229/add69dec-7a8e-4571-bd96-d456cb68159b
  3. Open Chrome debug console, paste the url into the navigation bar.
  4. Clikc the green node icon in the debug console

Hot reload mode

  1. yarn start
  2. visit http://localhost:3000

Useful Links