- Clone from GitHub
- Install Docker (for Linux) or Docker Desktop for another OS
cd
into application directory and runvendor/bin/sails up
to start application. You may want to configure a bash alias so that you may execute Sail commands by simply typingsail
instead of the longvendor/bin/sails up
command.- To configure a bash alias for Sail,
cd
into application directory and runalias sail='[ -f sail ] && bash sail || bash vendor/bin/sail'
for as long as the terminal lasts. Henceforth, you'll be able to start the application usingsail up
. - Once the application's Docker containers have been started, you can access the application in your web browser at: http://localhost
- Edit
.env
: get your INET address and use it as the value ofDB_HOST
. You can usehostname -I | awk '{print $1}'
to get an INET address on Linux machines
- Run the command
. setup.sh
to set up RabbitMQ queues and other configurations
Use an API testing tool such as Postman to make a POST request to http://localhost/api/publish/topic1. Ensure that you pass the JSON data below as request body:
{
"msg": "you can enter any string e.g. hello"
}
The message will be published to messaging queue and transmitted to the concerned services.
Unlicensed