The ngenv tool streamlines the process of using ngrok to expose local services to the internet, enabling secure HTTPS connections for local development environments. By automating ngrok tunnel creation and seamlessly integrating the public URLs into project .env files, it facilitates easy and secure testing of webhooks, APIs, and services directly from a developer's machine.
Go to file
Josh Guyette 0c762168af
Update README.md
2021-11-11 15:32:58 -06:00
.gitignore initial commit 2021-11-10 16:35:27 -06:00
README.md Update README.md 2021-11-11 15:32:58 -06:00
ngrok.js work around if NGROK_SERVERHOST isn't in ../.env 2021-11-10 18:25:28 -06:00
package.json building out cli arguments 2021-11-10 17:24:03 -06:00

README.md

ngrok-to-dotenv

This is a ngrok start-up wrapper that uses a dotenv file (at '../.env' relative to this project's folder) to get the authtoken and save the https address; it's a node cli tool that you can use with projects that need ngrok. You clone it into your project's folder, and add to the project's package.json a run script to call "cd ngrok-to-dotenv && node ngrok". Be sure to add the folder to your .gitignore and install the one package which is ngrok and command-line-args, using 'npm i' or 'yarn'. The 'node ngrok supports two arguments --proto (string, example 'html'), --addr (number, the port number).