In order to run these applications, you need to install the programming language Crystal. Please follow the instructions on the official website
For Linux
For Macos
For Windows
git clone [email protected]:cloudamqp/presentation-demo.git
cd presentation-demo
shards update
shards install
Clone the git repository and build the project.
git clone [email protected]:cloudamqp/lavinmq.git
cd lavinmq
make
sudo make install # optional
Now, LavinMQ is ready to be used. You can check the version with:
lavinmq -v
Run LavinMQ with:
lavinmq -D /var/lib/lavinmq
brew install lavinmq
brew services list
brew services start lavinmq
To stop Lavinmq: brew services stop lavinmq
curl -fsSL https://packagecloud.io/cloudamqp/lavinmq/gpgkey | gpg --dearmor | sudo tee /usr/share/keyrings/lavinmq.gpg > /dev/null
. /etc/os-release
echo "deb [signed-by=/usr/share/keyrings/lavinmq.gpg] https://packagecloud.io/cloudamqp/lavinmq/$ID $VERSION_CODENAME main" | sudo tee /etc/apt/sources.list.d/lavinmq.list
sudo apt-get update
sudo apt-get install lavinmq
Run LavinMQ with:
lavinmq -D /var/lib/lavinmq
Run LavinMQ with:
lavinmq -D /var/lib/lavinmq
Start the consumer in one terminal window:
crystal run hello_world_consumer.cr
Start the publisher in another terminal window:
crystal run hello_world_publisher.cr
URL: http://localhost:15672/
Username: guest
Password: guest
URL: https://test-freezing-barnacle.lmq.cloudamqp.com/
Username: tjejerkodar
Password: 84codes
Client for Crystal used in code along: https://github.com/cloudamqp/amqp-client.cr
More code examples: https://www.cloudamqp.com/docs/crystal.html
Clients for other languages and code examples: https://www.cloudamqp.com/docs/ruby.html#:~:text=HTTP-,CODE%20SAMPLE,-Ruby