Please refer the following community post that illustrates the steps to integrate the bot in an Angular JS based webApp.
https://test-discourse.kore.ai/t/integrating-bot-with-webapp-developed-in-angular/531
You can generate the JWT URL for a local test environment by using JWT.io .
Please refer the following post for further information:
https://test-discourse.kore.ai/t/jwtgrant-giving-400-as-response/557/4
Regards,
Yoga Ramya.