Skip to content

KABBOUCHI/adonisjs-queuedash

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

AdonisJS QueueDash

AdonisJS adapter for queuedash

QueueDash

Getting Started

This package is available in the npm registry.

npm install adonisjs-queuedash

Next, configure the package by running the following command.

node ace configure adonisjs-queuedash

Usage

basic usage

// start/routes.ts

import { Queue } from 'bullmq';

// http://127.0.0.1:3333/queuedash
Route.queuedash('/queuedash', {
	queues: [
		{
			queue: new Queue('report-queue'),
			displayName: 'Reports',
			type: 'bullmq' as const, // bullmq, bull, bee
		},
	],
}).middleware(['auth']);

using @rlanz/bull-queue

// start/routes.ts

import { Queue as BullmqQueue } from 'bullmq';
import { queueNames, config } from 'Config/queue';

const queues = queueNames.map((queueName) => ({
	queue: new BullmqQueue(queueName, {
		connection: config.connection,
	}),
	displayName: queueName,
	type: 'bullmq' as const,
}));

// http://127.0.0.1:3333/queues
Route.queuedash('/queues', {
	queues,
});

Troubleshooting Build Errors

If you encounter an error during the build process, it may be resolved by installing TypeScript version 5. You can do this using either npm or yarn as follows:

For npm:

npm install typescript@5

For yarn:

yarn add typescript@5

This specifies the installation of TypeScript version 5 as a development dependency, which should align with your project's requirements.

License

Published under MIT License.

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published