{"id":26783218,"url":"https://github.com/talha-tahir2001/echo-backend","last_synced_at":"2026-05-07T02:38:53.582Z","repository":{"id":279679347,"uuid":"939590833","full_name":"Talha-Tahir2001/echo-backend","owner":"Talha-Tahir2001","description":"Your words, amplified.","archived":false,"fork":false,"pushed_at":"2025-03-25T18:53:20.000Z","size":349,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-03-29T09:18:31.472Z","etag":null,"topics":["mongodb","mongoose","nestjs","rest-api","typescript"],"latest_commit_sha":null,"homepage":"","language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Talha-Tahir2001.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","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":"2025-02-26T19:35:38.000Z","updated_at":"2025-03-25T18:53:24.000Z","dependencies_parsed_at":"2025-03-19T10:39:29.534Z","dependency_job_id":null,"html_url":"https://github.com/Talha-Tahir2001/echo-backend","commit_stats":null,"previous_names":["talha-tahir2001/echo-backend"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/Talha-Tahir2001/echo-backend","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Talha-Tahir2001%2Fecho-backend","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Talha-Tahir2001%2Fecho-backend/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Talha-Tahir2001%2Fecho-backend/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Talha-Tahir2001%2Fecho-backend/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Talha-Tahir2001","download_url":"https://codeload.github.com/Talha-Tahir2001/echo-backend/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Talha-Tahir2001%2Fecho-backend/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32720770,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-07T02:14:30.463Z","status":"ssl_error","status_checked_at":"2026-05-07T02:14:29.405Z","response_time":62,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6:443 state=error: 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":["mongodb","mongoose","nestjs","rest-api","typescript"],"created_at":"2025-03-29T09:18:34.121Z","updated_at":"2026-05-07T02:38:53.567Z","avatar_url":"https://github.com/Talha-Tahir2001.png","language":"TypeScript","funding_links":["https://opencollective.com/nest","https://paypal.me/kamilmysliwiec"],"categories":[],"sub_categories":[],"readme":"\u003cp align=\"center\"\u003e\n  \u003ca href=\"http://nestjs.com/\" target=\"blank\"\u003e\u003cimg src=\"https://nestjs.com/img/logo-small.svg\" width=\"120\" alt=\"Nest Logo\" /\u003e\u003c/a\u003e\n\u003c/p\u003e\n\n\u003cp align=\"center\"\u003eA progressive \u003ca href=\"http://nodejs.org\" target=\"_blank\"\u003eNode.js\u003c/a\u003e framework for building efficient and scalable server-side applications.\u003c/p\u003e\n    \u003cp align=\"center\"\u003e\n\u003ca href=\"https://www.npmjs.com/~nestjscore\" target=\"_blank\"\u003e\u003cimg src=\"https://img.shields.io/npm/v/@nestjs/core.svg\" alt=\"NPM Version\" /\u003e\u003c/a\u003e\n\u003ca href=\"https://www.npmjs.com/~nestjscore\" target=\"_blank\"\u003e\u003cimg src=\"https://img.shields.io/npm/l/@nestjs/core.svg\" alt=\"Package License\" /\u003e\u003c/a\u003e\n\u003ca href=\"https://www.npmjs.com/~nestjscore\" target=\"_blank\"\u003e\u003cimg src=\"https://img.shields.io/npm/dm/@nestjs/common.svg\" alt=\"NPM Downloads\" /\u003e\u003c/a\u003e\n\u003ca href=\"https://circleci.com/gh/nestjs/nest\" target=\"_blank\"\u003e\u003cimg src=\"https://img.shields.io/circleci/build/github/nestjs/nest/master\" alt=\"CircleCI\" /\u003e\u003c/a\u003e\n\u003ca href=\"https://coveralls.io/github/nestjs/nest?branch=master\" target=\"_blank\"\u003e\u003cimg src=\"https://coveralls.io/repos/github/nestjs/nest/badge.svg?branch=master#9\" alt=\"Coverage\" /\u003e\u003c/a\u003e\n\u003ca href=\"https://discord.gg/G7Qnnhy\" target=\"_blank\"\u003e\u003cimg src=\"https://img.shields.io/badge/discord-online-brightgreen.svg\" alt=\"Discord\"/\u003e\u003c/a\u003e\n\u003ca href=\"https://opencollective.com/nest#backer\" target=\"_blank\"\u003e\u003cimg src=\"https://opencollective.com/nest/backers/badge.svg\" alt=\"Backers on Open Collective\" /\u003e\u003c/a\u003e\n\u003ca href=\"https://opencollective.com/nest#sponsor\" target=\"_blank\"\u003e\u003cimg src=\"https://opencollective.com/nest/sponsors/badge.svg\" alt=\"Sponsors on Open Collective\" /\u003e\u003c/a\u003e\n  \u003ca href=\"https://paypal.me/kamilmysliwiec\" target=\"_blank\"\u003e\u003cimg src=\"https://img.shields.io/badge/Donate-PayPal-ff3f59.svg\" alt=\"Donate us\"/\u003e\u003c/a\u003e\n    \u003ca href=\"https://opencollective.com/nest#sponsor\"  target=\"_blank\"\u003e\u003cimg src=\"https://img.shields.io/badge/Support%20us-Open%20Collective-41B883.svg\" alt=\"Support us\"\u003e\u003c/a\u003e\n  \u003ca href=\"https://twitter.com/nestframework\" target=\"_blank\"\u003e\u003cimg src=\"https://img.shields.io/twitter/follow/nestframework.svg?style=social\u0026label=Follow\" alt=\"Follow us on Twitter\"\u003e\u003c/a\u003e\n\u003c/p\u003e\n\u003chr/\u003e\n\n\n# ECHO Backend - NestJS 🎙️\n\nECHO is a **NestJS**-powered backend for a real-time discussion platform, allowing users to share thoughts, post comments, and interact seamlessly.\n\n## 🚀 Features\n- 🛠 **Modular architecture** - Organized and scalable\n- 🔐 **JWT Authentication** - Secure login and session handling\n- 💾 **MongoDB with Mongoose** - Flexible NoSQL database\n- 📡 **WebSockets** - Real-time messaging\n- 🌍 **CORS Enabled** - Secure cross-origin communication\n- 📜 **Swagger API Documentation** - Easily test and explore endpoints\n\n## 🏗️ Installation\n\n### Prerequisites\n- **Node.js** (\u003e= 18.x)\n- **MongoDB Atlas** (or local MongoDB instance)\n- **NestJS CLI** (`npm i -g @nestjs/cli`)\n\n### Clone Repository\n```sh\ngit clone https://github.com/Talha-Tahir2001/echo-backend.git\ncd echo-backend\n```\n\n### Install Dependencies\n```sh\nnpm install\n```\n\n### Configure Environment Variables\nCreate a `.env` file in the root directory:\n```env\nPORT=3000\nMONGO_URI=your_mongodb_connection_string\n```\n## Compile and run the project\n\n```bash\n# development\n$ npm run start\n\n# watch mode\n$ npm run start:dev\n\n# production mode\n$ npm run start:prod\n```\n\n\n## Run tests\n\n```bash\n# unit tests\n$ npm run test\n\n# e2e tests\n$ npm run test:e2e\n\n# test coverage\n$ npm run test:cov\n```\n\n## 🔥 API Endpoints\n\n### 🛠 Authentication\n| Method | Endpoint | Description |\n|--------|---------|-------------|\n| `POST` | `/users` | Register a new user |\n| `GET` | `/users` | Get a user|\n\n### 💬 Comments\n| Method | Endpoint | Description |\n|--------|---------|-------------|\n| `GET` | `/comments` | Fetch all comments |\n| `POST` | `/comments` | Create a new comment |\n| `GET` | `/comments/:id` | Get a comment by ID|\n\n📖 Full API documentation available at `/api/docs` (Swagger UI).\n\n## 🛠️ Deployment\nECHO can be deployed to **Render, Railway, Vercel (API mode), or Fly.io**.\n\n```sh\n# Example: Deploying on Railway\nrailway init\nrailway up\n```\n\n## 📜 License\nThis project is [MIT Licensed](https://github.com/Talha-Tahir2001/echo-backend/tree/main?tab=MIT-1-ov-file). Feel free to use and modify! ❤️\n\n---\n💡 **Contributions \u0026 Suggestions Welcome!** PRs are encouraged to improve the project. 🚀\n\n##  📑Resources\n\nCheck out a few resources that may come in handy when working with NestJS:\n\n- Visit the [NestJS Documentation](https://docs.nestjs.com) to learn more about the framework.\n- For questions and support, please visit their [Discord channel](https://discord.gg/G7Qnnhy).\n- To dive deeper and get more hands-on experience, check out their official video [courses](https://courses.nestjs.com/).\n- Deploy your application to AWS with the help of [NestJS Mau](https://mau.nestjs.com) in just a few clicks.\n- Visualize your application graph and interact with the NestJS application in real-time using [NestJS Devtools](https://devtools.nestjs.com).\n- Need help with your project (part-time to full-time)? Check out their official [enterprise support](https://enterprise.nestjs.com).\n- To stay in the loop and get updates, follow them on [X](https://x.com/nestframework) and [LinkedIn](https://linkedin.com/company/nestjs).\n- Looking for a job, or have a job to offer? Check out their official [Jobs board](https://jobs.nestjs.com).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftalha-tahir2001%2Fecho-backend","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftalha-tahir2001%2Fecho-backend","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftalha-tahir2001%2Fecho-backend/lists"}