https://github.com/vorce/lasso
Real-time UI for webhooks
https://github.com/vorce/lasso
liveview phoenix-framework webhooks
Last synced: 5 months ago
JSON representation
Real-time UI for webhooks
- Host: GitHub
- URL: https://github.com/vorce/lasso
- Owner: vorce
- License: agpl-3.0
- Created: 2019-05-15T13:34:11.000Z (about 7 years ago)
- Default Branch: main
- Last Pushed: 2024-10-21T08:56:33.000Z (over 1 year ago)
- Last Synced: 2024-10-21T12:26:38.621Z (over 1 year ago)
- Topics: liveview, phoenix-framework, webhooks
- Language: Elixir
- Homepage: https://lasso.gigalixirapp.com
- Size: 667 KB
- Stars: 30
- Watchers: 2
- Forks: 2
- Open Issues: 14
-
Metadata Files:
- Readme: README.md
- License: LICENSE.txt
Awesome Lists containing this project
README
[](https://github.com/vorce/lasso/actions) [](https://dependabot.com) [](https://casuallymaintained.tech/)
# Lasso

Inspect HTTP requests. Powered by [Phoenix](https://phoenixframework.org/) and [LiveView](https://github.com/phoenixframework/phoenix_live_view).
**Try it on [https://lasso.gigalixirapp.com](https://lasso.gigalixirapp.com)**.
### Thank you
- [webhookinbox.com](http://webhookinbox.com/) - inspiration for the whole project
- [ikonate](https://ikonate.com/) - beautiful svg icons
### A note on request headers
At the moment Lasso will display all headers it sees in the request, including ones added by things unrelated to the client making the request (such as load balancers, router etc that are infront of the deployed instance). This can be a bit confusing and something
that I'd like to improve.
## Start locally
- `mix deps.get`
- `cd assets && npm install && cd ..`
- `APP_HOST=localhost iex -S mix phx.server`
- Go to [`localhost:4000`](http://localhost:4000) in your browser
### Admin area
There's a Phoenix Live Dashboard available on [/admin](http://localhost:4000/admin). This page is protected by basic auth, the credentials can be configured in `config.exs`. By default the password is read from the environment variable `ADMIN_PASSWORD`.
## Building a release
Yay for [releases](https://hexdocs.pm/mix/Mix.Tasks.Release.html) in Elixir 1.9.
Phoenix has some [additional docs](https://github.com/phoenixframework/phoenix/blob/master/guides/deployment/releases.md) for being deployed in a release.
```bash
mix deps.get --only prod
mix compile
npm run deploy --prefix ./assets
mix phx.digest
export SECRET_KEY_BASE=...
MIX_ENV=prod APP_NAME=lasso MIX_ENV=prod SECRET_SALT=... mix release
_build/prod/rel/lasso/bin/lasso start
```