{"id":18330772,"url":"https://github.com/sumitbhuia/redis-queue-impl","last_synced_at":"2025-04-09T17:52:13.267Z","repository":{"id":253577548,"uuid":"843886802","full_name":"sumitbhuia/redis-queue-impl","owner":"sumitbhuia","description":"Redis Queue Processing with Express and TypeScript","archived":false,"fork":false,"pushed_at":"2024-08-17T20:06:41.000Z","size":16,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-02-15T10:45:09.737Z","etag":null,"topics":["redis","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/sumitbhuia.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-08-17T18:07:24.000Z","updated_at":"2024-08-17T20:06:43.000Z","dependencies_parsed_at":"2024-08-19T09:35:36.342Z","dependency_job_id":null,"html_url":"https://github.com/sumitbhuia/redis-queue-impl","commit_stats":null,"previous_names":["sumitbhuia/redis-queue-impl"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sumitbhuia%2Fredis-queue-impl","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sumitbhuia%2Fredis-queue-impl/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sumitbhuia%2Fredis-queue-impl/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sumitbhuia%2Fredis-queue-impl/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/sumitbhuia","download_url":"https://codeload.github.com/sumitbhuia/redis-queue-impl/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248083262,"owners_count":21045068,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","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":["redis","redis-queue","typescript"],"created_at":"2024-11-05T19:25:50.667Z","updated_at":"2025-04-09T17:52:13.244Z","avatar_url":"https://github.com/sumitbhuia.png","language":"TypeScript","readme":"# Redis Queue Processing with Express and TypeScript\n\nThis project demonstrates a basic queue processing system using Redis, Express, and TypeScript. It includes two main components:\n1. **Server**: Handles incoming code submissions and pushes them to a Redis queue.\n2. **Worker**: Processes submissions from the Redis queue asynchronously.\n\n## Getting Started\n\n### Prerequisites\n- [Node.js](https://nodejs.org/) (version 14 or above)\n- [Redis](https://redis.io/) (running locally or remotely)\nor\n```\ndocker run --name myredis -d -p 6379:6379 redis\n```\n\n### Installation\n\n1. Clone the repository:\n    ```bash\n    git clone https://github.com/your-username/redis-queue-impl.git\n    ```\n2. Navigate to the project directory:\n    ```bash\n    cd redis-queue-impl\n    ```\n3. Install the dependencies:\n    ```bash\n    npm install\n    ```\n\n### Running the Server\n\n1. Start the Redis server.\n2. Run the Express server:\n    ```bash\n    cd express-be\n    npx tsc -b\n    node dist/index.js\n    ```\n3. The server will be running on `http://localhost:3000`.\n\n### Running the Worker\n\n1. Start the Redis server (if not already running).\n2. Run the worker:\n    ```bash\n    cd worker\n    npx tsc -b\n    node dist/index.js\n    ```\n\n### API Endpoint\n\n- **POST /submit**\n  - Submits a code problem to be processed.\n  - **Body Parameters:**\n    - `problemId` (string): The ID of the problem.\n    - `code` (string): The code submitted for the problem.\n    - `language` (string): The programming language used.\n\n### Example Request : Postman\n\n```bash\nURL -\u003e http://localhost:3000/submit \nBody -\u003e RAW-\u003eJSON\n{\"problemId\":\"123\",\"code\":\"console.log('Hello World')\",\"language\":\"JavaScript\"}\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsumitbhuia%2Fredis-queue-impl","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsumitbhuia%2Fredis-queue-impl","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsumitbhuia%2Fredis-queue-impl/lists"}