-
Notifications
You must be signed in to change notification settings - Fork 0
Installation
GitHub Actions edited this page Jan 14, 2025
·
1 revision
To install the pop-queue
library, follow these steps:
Make sure you have the following software installed on your system:
- Node.js (version 14 or higher)
- npm (Node Package Manager)
- MongoDB
- Redis
- Memcached (optional)
- PostgreSQL (optional)
Clone the pop-queue
repository from GitHub:
git clone https://github.com/uuuchit/pop-queue.git
cd pop-queue
Install the required dependencies using npm:
npm install
Create a .env
file in the root directory of the project and add the following environment variables:
NODE_ENV=production
DB_URL=mongodb://yourMongoDbUrl:27017
REDIS_URL=redis://yourRedisUrl:6379
MEMCACHED_URL=memcached://yourMemcachedUrl:11211
POSTGRES_URL=postgres://yourPostgresUrl:5432
WORKER_ID=yourWorkerId
WORKER_TIMEOUT=30000
RATE_LIMIT=100
CONCURRENCY=5
BACKOFF_STRATEGY={"type":"exponential","delay":1000}
Replace the placeholder values with your actual configuration.
Build the project using npm:
npm run build
Start the application using npm:
npm start
The application should now be running and ready to use.