Sign inSign up

na4va4/rb_webhook

By na4va4

•Updated almost 2 years ago

Basic webhook server built with Sinatra in Ruby.

Image
0

478

na4va4/rb_webhook repository overview

⁠rb_webhook

⁠Table of Contents

  1. General Info⁠
  2. Technologies⁠
  3. Installation⁠

⁠General Info


This project is a basic web server built with Sinatra in Ruby. It provides an HTTP GET endpoint that returns a "Hello World" message in JSON format.

  • HTTP Endpoint:

    • Route: /webhook
    • Response: {"message": "Hola Mundo desde Webhook en Ruby"}
  • Server Configuration:

    • Port: 4567
    • Binding: 0.0.0.0 (accessible from all network interfaces)

⁠Technologies


A list of technologies used within the project:

⁠Installation


Follow these steps to install and run the project:

⁠Via GitHub

Ensure you have ruby and bundler installed on your machine:

ruby --version  
gem install bundler

Copy the repository

git clone https://github.com/nava2105/rb_webhook.git

Enter the directory

cd ../rb_webhook

Install the dependencies using Bundler:

bundle install

Compile the project directly form mvn

ruby app.rb

Open a browser and enter to http://localhost:4567/webhook⁠

⁠Via Docker-hub

Pull the image from Docker-hub

docker pull na4va4/rb_webhook

Start a container from the image

docker run -p 4567:4567 na4va4/rb_webhook

Open a browser and enter to http://localhost:4567/webhook⁠

Or to review the endpoints in Swagger enter to http://localhost:4567/docs⁠

Tag summary

Content type

Image

Digest

sha256:77e3c90e3…

Size

376.8 MB

Last updated

almost 2 years ago

docker pull na4va4/rb_webhook