Prerequisites
Before installing Bull, ensure you have:- Node.js version 12 or higher
- Redis version 2.8.18 or higher
Install Bull
Install TypeScript definitions (optional)
If you’re using TypeScript, install the type definitions:
Type definitions are maintained in the DefinitelyTyped repository.
Set up Redis
Bull uses Redis as its datastore. Make sure Redis is installed and running:Install Redis:Verify Redis is running:
- macOS:
brew install redis - Ubuntu/Debian:
sudo apt-get install redis-server - Windows: Use WSL or Redis for Windows
Redis Connection Options
Bull supports multiple ways to connect to Redis:Using a Redis URL
Using a configuration object
Using default localhost connection
Next Steps
Quick Start Guide
Now that Bull is installed, create your first queue and start processing jobs