Git Product home page Git Product logo

webhook.site's Introduction

Webhook.site

Docker Cloud Build Status GitHub last commit

With Webhook.site, you can easily test HTTP webhooks and other types of HTTP requests.

Upon visiting the app, you get a random URL to send your requests and webhooks to, and they're all logged in the app – instantly. Check it out at https://webhook.site.

Built by Simon Fredsted (@fredsted).

Acknowledgements

The app was built with Laravel for the API and Angular.js for the frontend SPA.

Donate

Requirements

  • PHP 7
  • Redis
  • Composer
  • Web server

Version 1.1 switched to using Redis for storage. If you want to use SQLite, you can use version 1.0.

Installation

Docker

The provided Docker Compose file sets up a complete environment that runs the Webhook.site image and all dependencies (Redis, Laravel Echo Server, etc.). Note that if running this in production, you should probably run a Redis server that persists data to disk. The Docker image is also not tuned for large amount of traffic.

  1. Run docker-compose up
  2. The app is available on http://127.0.0.1:8084.

Web Server

  1. Run the following commands:
    1. composer install
    2. cp .env.example .env - adjust settings as needed
    3. php artisan key:generate
  2. Setup virtual host pointing to the /public folder. DigitalOcean has a guide on how to configure nginx.

Push functionality

You can use laravel-echo-server or Pusher to enable realtime updates. Take a look at the .env.example on how to configure it.

For laravel-echo-server, the app expects socket.io to be available at the /socket.io path. This can be done with nginx like so:

    location /socket.io {
        proxy_pass http://127.0.0.1:6001;
        proxy_http_version 1.1;
        proxy_set_header Upgrade $http_upgrade;
        proxy_set_header Connection 'upgrade';
        proxy_set_header Host $host;
        proxy_cache_bypass $http_upgrade;
    }

webhook.site's People

Contributors

fredsted avatar micsco avatar crazy-max avatar sofwar avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.