Use ngrok to showcase some of the essential functionality for "live" API endpoint and webhook testing.
- Begin with a brief code overview.
- Start the server and head to the basic "/" GET request.
- Take a quick look at
localhost:4040
to see the inspection interface. - Stop the server and show scripts for authentication.
- Comment out the ngrok connection in the
index.ts
file and restart the server. - Run the script for
basic-auth
. Take a look at the terminal to see requests and other details. - Visit the provided ngrok URL from the terminal and use the "/basic" route for a fun surprise!
- Run the script for
oauth
. Take a look at the terminal again. - Visit the provided ngrok URL from the terminal and use the "/oauth" route for one more surprise! (Note: this demo was completed on a Friday ;) )