DataQueueDataQueue

Installation

Before you begin, make sure you have Node.js and TypeScript installed in your environment.

PostgreSQL Backend

If you're using PostgreSQL as your backend, you need a Postgres database. Install the required libraries:

npm install @nicnocquee/dataqueue
npm install -D node-pg-migrate ts-node
pnpm add @nicnocquee/dataqueue
pnpm add -D node-pg-migrate ts-node
yarn add @nicnocquee/dataqueue
yarn add --dev node-pg-migrate ts-node
bun add @nicnocquee/dataqueue
bun add --dev node-pg-migrate ts-node

You need to install node-pg-migrate and ts-node as development dependencies to run database migrations.

Redis Backend

If you're using Redis as your backend, you need a Redis server (v6+). Install the required libraries:

npm install @nicnocquee/dataqueue ioredis
pnpm add @nicnocquee/dataqueue ioredis
yarn add @nicnocquee/dataqueue ioredis
bun add @nicnocquee/dataqueue ioredis

The ioredis package is an optional peer dependency. You only need to install it if you choose Redis as your backend. No database migrations are required for Redis.