Setup Guide
Official website
https://ngrok.com/
MacOS
Install
- Register an account on ngrok using the above link
- open terminal and run
brew install ngrok/ngrok/ngrok
Configure
- Find this command
ngrok config add-authtoken <YourAuthToken> on your ngrok’s home page and run it in the terminal
Do before every run
- Open a new window and start backend, checkout to localMongo run
npm start
- Open a new window and start frontend, checkout to officeHour run
npm start
- In terminal, run
ngrok http https://localhost:8080 or 8443, depending on .env file’s PORT in backend
- In frontend’s root directory, change config.json hostname to the ngrok app link provided in the terminal
https://<someURL> will be your temporary backend host domain
Windows
- Download binary file from ngrok setup page and run the binary (exe)
- In the powershell run
ngrok config add-authtoken YourAuthToken
- Check out localMongo branch and run
ngrok http https://localhost:8443
- In the terminal, you should see something like
forwarding <https://someURL> -> https://localhost:8443