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
.
Debug mode
NODE_ENV=debug node --inspect-brk ./bin/www
- The terminal will log out something like:
Debugger listening on ws://127.0.0.1:9229/add69dec-7a8e-4571-bd96-d456cb68159b
- Open Chrome debug console, paste the url into the navigation bar.
- Clikc the green node icon in the debug console
Hot reload mode
yarn start
- visit http://localhost:3000