RESTful API
- users can subscribe to websites
- posts can be published on a particular website
- all subscribed users receive an email with the post details(title, description)
- Clone the repository
- Run
composer install
- Run
php artisan migrate --seed
to seed the database - Configure
.env
with database access, mail credentials and queue driver (QUEUE_CONNECTION=database
) - Run
php artisan queue:work
to listen to events andphp artisan serve
to run the webserver - Run the
Postman
example endpoints : Postman JSON link - Run the
php artisan post:notify
command with either a post ID as argument or--latest
flag to notify users for the latest post