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
- Clone repo to your local machine using
git clone https://github.com/Triverla/notifier.git
- Run
composer install
from your terminal - Run
cp .env.example .env
to create .env - Configure your database in the .env and run
php artisan migrate
to migrate database tables - Run
php artisan serve
to start server
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"
}
}
This project was built with PHP(Laravel) and Mysql.
Tests were written using PHPUnit. Run tests using
php artisan test