Skip to content

Commit

Permalink
ngrok details
Browse files Browse the repository at this point in the history
Signed-off-by: Łukasz Gryglicki <[email protected]>
  • Loading branch information
lukaszgryglicki committed Nov 27, 2024
1 parent 1c0db12 commit 247a9f8
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 0 deletions.
7 changes: 7 additions & 0 deletions cla-backend/scripts/health.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
#!/bin/bash
# API_URL=https://3f13-147-75-85-27.ngrok-free.app (defaults to localhost:5000)
if [ -z "$API_URL" ]
then
export API_URL="http://localhost:5000"
fi
curl -s "${API_URL}/v2/health" | jq -r '.'
3 changes: 3 additions & 0 deletions dev.md
Original file line number Diff line number Diff line change
Expand Up @@ -202,6 +202,9 @@ open http://localhost:5000/v2/health
open http://localhost:5000/v2/user/<some_uuid_from_users_table>
```

To expose service running on the localhost to the outside world use: `` ./ngrok.sh ``.
And then tets via: `` API_URL='https://[redacted].ngrok-free.app' ./scripts/health.sh `` from another host (anywhere in the world).

## Building and Running the Go Backend

Current Endpoints:
Expand Down
2 changes: 2 additions & 0 deletions ngrok.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
#!/bin/bash
ngrok http http://localhost:5000

0 comments on commit 247a9f8

Please sign in to comment.