# Part 2: LavinMQ for beginners - Sample code

By Lovisa Johansson. Published 24 May 2022.

Part 2 of **LavinMQ for beginners - Sample code for Ruby, Node.js, and Python**.

The previous [article](/blog/lavinmq-for-beginners-part-1-what-is-lavinmq/) explained message queuing and LavinMQ. In this part of the series, we show sample code for Ruby, Python and Node.js. All the tutorials contain both basic and advanced information and step-by-step instructions which show how to set up a connection, how to publish to a queue, and how to subscribe from a queue.

![Ruby](/img/blog/sm-getting-started-ruby.jpg)
### Part 2.1 - Ruby

Step-by-step instructions for Ruby + LavinMQ

[Ruby + LavinMQ](/blog/lavinmq-for-beginners-part-2-getting-started-with-ruby/)

![Node.js](/img/blog/sm-getting-started-node.jpg)
### Part 2.2 - Node.js

Step-by-step instructions for Node.js + LavinMQ

[Node.js + LavinMQ](/blog/lavinmq-for-beginners-part-2-getting-started-with-nodejs/)

![Python](/img/blog/sm-getting-started-python.jpg)
### Part 2.3 - Python

Step-by-step instructions for Python + LavinMQ

[Python + LavinMQ](/blog/lavinmq-for-beginners-part-2-getting-started-with-python/)

Guide — LavinMQ for beginners

### CloudAMQP - industry-leading LavinMQ as a Service

Fully managed LavinMQ clusters on all major clouds. Free plan available - no credit card required.

[Sign up for free](https://customer.cloudamqp.com/signup?topic=try_lavinmq)

[Part 1: What is LavinMQ?](/blog/lavinmq-for-beginners-part-1-what-is-lavinmq/)
