/json_notification_receiver

App for test REST API endpoint built with Ruby, Sinatra

Primary LanguageRuby

Json notification receiver

Description

App built with Ruby and Sinatra.
Used as test REST API endpoint.

Tech stack

Docker
Ruby
Sinatra

How to make it work

For development environment:
cd to project root folder.
We have 1 container in development environment.
Create images + create and run containers:
docker-compose -f ./docker-compose-dev.yml up
Stop and remove containers:
docker-compose -f ./docker-compose-dev.yml down
Rebuild images + create and run containers:
docker-compose -f ./docker-compose-dev.yml up --build
List services:
docker-compose -f ./docker-compose-dev.yml ps

Requests examples:

With curl:
curl -X POST localhost:3001/notification
curl -X GET localhost:3001/notification