{"id":19768734,"url":"https://github.com/prakharsinha-09/redis_nodejs","last_synced_at":"2026-04-14T05:31:12.199Z","repository":{"id":240780490,"uuid":"803260292","full_name":"PrakharSinha-09/Redis_Nodejs","owner":"PrakharSinha-09","description":"Implementing a design pattern which is leveraging message queues via redis mqs","archived":false,"fork":false,"pushed_at":"2024-05-20T18:32:49.000Z","size":18,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-02-28T11:01:27.379Z","etag":null,"topics":["expressjs","node-js","redis","redis-client","redis-queue","typescript"],"latest_commit_sha":null,"homepage":"","language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/PrakharSinha-09.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2024-05-20T11:41:19.000Z","updated_at":"2024-05-20T18:34:09.000Z","dependencies_parsed_at":"2024-05-20T22:14:12.722Z","dependency_job_id":null,"html_url":"https://github.com/PrakharSinha-09/Redis_Nodejs","commit_stats":null,"previous_names":["prakharsinha-09/redis_nodejs"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/PrakharSinha-09/Redis_Nodejs","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/PrakharSinha-09%2FRedis_Nodejs","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/PrakharSinha-09%2FRedis_Nodejs/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/PrakharSinha-09%2FRedis_Nodejs/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/PrakharSinha-09%2FRedis_Nodejs/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/PrakharSinha-09","download_url":"https://codeload.github.com/PrakharSinha-09/Redis_Nodejs/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/PrakharSinha-09%2FRedis_Nodejs/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31784251,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-14T02:24:21.117Z","status":"ssl_error","status_checked_at":"2026-04-14T02:24:20.627Z","response_time":153,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["expressjs","node-js","redis","redis-client","redis-queue","typescript"],"created_at":"2024-11-12T04:40:03.478Z","updated_at":"2026-04-14T05:31:12.173Z","avatar_url":"https://github.com/PrakharSinha-09.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Redis Queues Implementation with Node.js (Express Backend)\n\nThis project demonstrates how to implement Redis queues using a Node.js backend with Express. The setup includes running Redis on Docker, starting an Express server, and managing worker services.\n\n## Prerequisites\n\n- [Docker](https://www.docker.com/get-started)\n- [Node.js](https://nodejs.org/) (version 12 or higher)\n- [npm](https://www.npmjs.com/)\n\n## Getting Started\n\n### Step 1: Start Redis with Docker\nFirst, you need to start a Redis instance using Docker. Open your terminal and run the following command:\n\n```bash\ndocker run --name my-redis -d -p 6379:6379 redis\nThis command pulls the Redis Docker image (if not already available) and runs it, exposing Redis on port 6379.\n```\n\n### Step 2: Set Up the Express Backend\nNavigate to the express-backend folder and install the necessary dependencies:\n\n```bash\ncd express-backend\nnpm install\n```\n\nAfter installing the dependencies, start the Express server:\n```bash\nnode dist/index.js\n```\n\n### Step 3: Set Up the Worker Service\nNavigate to the worker folder and install the dependencies:\n\n```bash\ncd ../worker\nnpm install\n```\n\nStart the worker service by running:\n\n```bash\nnode dist/index.js\n```\n\nYou can start multiple worker instances by running the above command multiple times in different terminal windows or tabs.\n\n\n### Step 4: Testing with Postman\nNow that your server and workers are running, you can test the setup using Postman or any other API testing tool. Send requests to the Express server, which will manage the queueing and processing of tasks using the worker services.\n\n### Project Structure\nexpress-backend: Contains the Express server implementation.  \nworker: Contains the worker service that processes tasks from the Redis queue.","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fprakharsinha-09%2Fredis_nodejs","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fprakharsinha-09%2Fredis_nodejs","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fprakharsinha-09%2Fredis_nodejs/lists"}