Skip to content

Triverla/notifier

Repository files navigation

HTTP Notification System

This application accept urls as payload to subscribe to topics on a server and when messages are published to those topics, there are received on those urls.

##Installation

  1. Clone repo to your local machine using git clone https://github.com/Triverla/notifier.git
  2. Run composer install from your terminal
  3. Run cp .env.example .env to create .env
  4. Configure your database in the .env and run php artisan migrate to migrate database tables
  5. Run php artisan serve to start server

Endpoints

Subscribe to Topic

{{URL}}/subscribe/{topic}

Request Body

{
    "url":"http://localhost:9000/test1"
}

Publish message to topic

{{URL}}/publish/{topic}

Request Body

{
    "body": {
        "message": "hello"
    }
}

Technology Used

This project was built with PHP(Laravel) and Mysql.

Tests

Tests were written using PHPUnit. Run tests using

php artisan test

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published