open-index/open-npm huggingface dataset:
npm package: @lessmore/laravel-nodejs-redis-queue
Description: Push Laravel jobs to redis queue from NodeJs App
Author: lessmore92
Latest version: 1.0.2

# laravel-nodejs-redis-queue
Push Laravel jobs to redis queue from NodeJs App

## Install
```shell
npm i @lessmore/laravel-nodejs-redis-queue
```
```shell
pnpm i @lessmore/laravel-nodejs-redis-queue
```
```shell
yarn add @lessmore/laravel-nodejs-redis-queue
```

## Usage

Push `TestJob` to `default` queue:
```javascript
//app.js
import {createClient} from 'redis';
import {Queue, Job} from '@lessmore/laravel-nodejs-redis-queue'

const redis = createClient();

let laravel_queue = new Queue({
    client: redis,
    app_name: 'laravel_app',
    scope: {
        'App\\Jobs\\TestJob': Job
    }
});
let job = new Job({a: 'pushed from', b: 'nodejs'});
job.queue = 'default'
job.delay = 50
laravel_queue.push('App\\Jobs\\TestJob', job);
```

`TestJob` in Laravel:
```php
<?php

namespace App\Jobs; 
use Illuminate\Contracts\Queue\ShouldQueue;

class TestJob extends Job implements ShouldQueue
{
    public $a, $b;
    public function __construct ($a, $b) {
        $this->a = $a;
        $this->b = $b;
    }

    function handle () {
        \Log::info('TestJob ' . $this->a . ' '. $this->b);
    }
}
```
npm package: @lessondesk/theme
Description: UI Theme for Lesson Desk
Author: Tiaan du Plessis
Latest version: 1.0.0


# @lessondesk/theme
[![package version](https://img.shields.io/npm/v/@lessondesk/theme.svg?style=flat-square)](https://npmjs.org/package/@lessondesk/theme)
[![package downloads](https://img.shields.io/npm/dm/@lessondesk/theme.svg?style=flat-square)](https://npmjs.org/package/@lessondesk/theme)
[![standard-readme compliant](https://img.shields.io/badge/readme%20style-standard-brightgreen.svg?style=flat-square)](https://github.com/RichardLitt/standard-readme)
[![package license](https://img.shields.io/npm/l/@lessondesk/theme.svg?style=flat-square)](https://npmjs.org/package/@lessondesk/theme)
[![make a pull request](https://img.shields.io/badge/PRs-welcome-brightgreen.svg?style=flat-square)](http://makeapullrequest.com)
[![lessondesk-code-style](https://img.shields.io/badge/code%20style-lessondesk-ffa400.svg?style=flat-square)](https://github.com/lessondesk/eslint-config)

> UI Theme for Lesson Desk

## Table of Contents

- [Usage](#usage)
- [Install](#install)
- [Contribute](#contribute)
- [License](#License)

## Usage

```js
import theme from '@lessondesk/theme'
console.log('theme', theme)
```


## Install

This project uses [node](https://nodejs.org) and [npm](https://www.npmjs.com).

```sh
$ npm install @lessondesk/theme
$ # OR
$ yarn add @lessondesk/theme
```

## Contribute

1. Fork it and create your feature branch: `git checkout -b my-new-feature`
2. Commit your changes: `git commit -am "Add some feature"`
3. Push to the branch: `git push origin my-new-feature`
4. Submit a pull request

## License

MIT