Open TokenServer.js and replace and with your value
// Fill the appID and appCertificate key given by Agora.io
var appID = "<YOUR APP ID>";
var appCertificate = "<YOUR APP CERTIFICATE>";
npm i
node TokenServer.js
You can use ngrok for exposing local web server to the internet. The following command will share your local web server
ngrok http 8080
curl [server_url]/rtcToken?channelName=test
curl [server_url]/rtmToken?account=testAccount