{"id":20682992,"url":"https://github.com/viveksite/chat_app_backend","last_synced_at":"2026-04-28T21:35:15.693Z","repository":{"id":255405796,"uuid":"848609903","full_name":"VivekSite/chat_app_backend","owner":"VivekSite","description":"Implementation of backend express and socket server for creating scalable chat application.","archived":false,"fork":false,"pushed_at":"2024-10-25T08:55:20.000Z","size":105,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-10-10T14:33:46.366Z","etag":null,"topics":["authentication","expressjs","persistent-cache","redis","typescript","websocket"],"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/VivekSite.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-28T04:36:31.000Z","updated_at":"2024-10-25T08:55:24.000Z","dependencies_parsed_at":"2024-08-29T20:36:37.424Z","dependency_job_id":"7cf7827b-df83-46c0-ae29-550f53748df3","html_url":"https://github.com/VivekSite/chat_app_backend","commit_stats":null,"previous_names":["viveksite/chat_app_backend"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/VivekSite/chat_app_backend","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/VivekSite%2Fchat_app_backend","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/VivekSite%2Fchat_app_backend/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/VivekSite%2Fchat_app_backend/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/VivekSite%2Fchat_app_backend/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/VivekSite","download_url":"https://codeload.github.com/VivekSite/chat_app_backend/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/VivekSite%2Fchat_app_backend/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32400868,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-28T19:38:08.556Z","status":"ssl_error","status_checked_at":"2026-04-28T19:37:55.688Z","response_time":56,"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":["authentication","expressjs","persistent-cache","redis","typescript","websocket"],"created_at":"2024-11-16T22:15:13.511Z","updated_at":"2026-04-28T21:35:15.676Z","avatar_url":"https://github.com/VivekSite.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"#### This is the backend Implementation of express and socket server for creating scalable chat application.\n\n## Dependencies\n- MongoDB \n- Redis\n  - Using bullMQ library and it uses the redis to store the queue data.\n  - By using queues I'm trying to reduce the time taken by DB operations. and after sending the message I'm adding the messages inot DB asynchronously.\n\n## Run the code locally\n- Clone the repo: `git clone https://github.com/VivekSite/chat_app_backend.git`.\n- Install the MongoDB community version or we can also use connection string to connect with the MongoDB atlas.\n- Same for Redis we can install redis server locally.\n  - For MacOS run `brew install redis`.\n  - For Linux run `sudo apt install redis-server`.\n- Install all the other dependencies: `yarn install`.\n- Now lets update the .env file\n  - copy the .env.example file `cp .env.example .env`\n  ```\n    NODE_ENV=development\n    PORT=8080\n    MONGO_URI=mongodb://localhost:27017/chat_application\n    REDIS_URL=redis://localhost:6379\n\n    ACCESS_TOKEN_SECRET='*******************************************'\n    REFRESH_TOKEN_SECRET='*******************************************'\n    HASH_SECRET='*******************************************'\n    OTP_SECRET='*******************************************'\n\n    EMAIL_SENDER=example@gmail.com\n    EMAIL_PASS_KEY='abcd efgh ijkl mnop'\n  ```\n  - Update all the secrets. we can use following command to generate the secrets:\n  - `openssl rand -hex 64`\n  - For `EMAIL_PASS_KEY` we can generate the App Password from `https://myaccount.google.com` \n- Start the development server: `yarn run dev`.\n\nwe can also use npm to run the scripts\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fviveksite%2Fchat_app_backend","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fviveksite%2Fchat_app_backend","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fviveksite%2Fchat_app_backend/lists"}