Skip to content

Tutorial

Grant Carthew edited this page Aug 21, 2016 · 16 revisions

How do I process jobs?

To really understand how to use rethinkdb-job-queue we need to go through a real example. In this document we will see how to send emails using the Nodemailer SMTP client.

The example we are going through will be very similar to the one on the README document with a little more detail.

This example is broken down into the following parts.

Installation

The rethinkdb-job-queue requires an installation of RethinkDB. Please follow the installation procedure for your operating system to get RethinkDB up and running.

Once you have RethinkDB installed you will need an installation of Node.js. Follow the installation procedure for Node. This is pretty obvious however its not hard to add this information in.

Now that you have Node.js installed you also have the "Node Package Manager" or NPM. Using the npm command line tool you can continue the installation. Open a command prompt to continue.

If you are adding rethinkdb-job-queue to an existing project then change directory to that projects root directory. If you are starting from scratch you may want to initialize a project using npm init. Either way get into the directory you would like to install rethinkdb-job-queue.

Finally we install rethinkdb-job-queue by typing the following into the command line.

npm install rethinkdb-job-queue --save

Seeing as this example it using the Nodemailer package you will also need to install Nodemailer as follows.

npm install nodemailer --save

At this point we have all the programs and packages installed that we need to start coding.

Main

How It Works

Contributing

API

Queue Methods

Queue Properties

Queue Events

Job Methods

Job Properties

Documentation

Clone this wiki locally