{"id":13623890,"url":"https://github.com/jrsousadev/live-chat-api","last_synced_at":"2026-02-15T09:11:20.974Z","repository":{"id":107223665,"uuid":"568242997","full_name":"jrsousadev/live-chat-api","owner":"jrsousadev","description":"💬 Live chat with Websocket, Nodejs, Prisma and Jest","archived":false,"fork":false,"pushed_at":"2022-12-04T02:35:24.000Z","size":292,"stargazers_count":4,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-07-04T08:42:00.563Z","etag":null,"topics":["backend","jest","mongodb","nodejs","prisma","socket-io","supertest","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/jrsousadev.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}},"created_at":"2022-11-19T22:26:30.000Z","updated_at":"2024-06-15T13:07:07.000Z","dependencies_parsed_at":"2024-01-14T08:14:46.940Z","dependency_job_id":"6918e74c-ccf6-4c2c-a526-fadf7a1a8814","html_url":"https://github.com/jrsousadev/live-chat-api","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/jrsousadev/live-chat-api","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jrsousadev%2Flive-chat-api","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jrsousadev%2Flive-chat-api/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jrsousadev%2Flive-chat-api/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jrsousadev%2Flive-chat-api/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/jrsousadev","download_url":"https://codeload.github.com/jrsousadev/live-chat-api/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jrsousadev%2Flive-chat-api/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29474427,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-15T06:58:05.414Z","status":"ssl_error","status_checked_at":"2026-02-15T06:58:05.085Z","response_time":118,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5: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":["backend","jest","mongodb","nodejs","prisma","socket-io","supertest","websocket"],"created_at":"2024-08-01T21:01:36.679Z","updated_at":"2026-02-15T09:11:15.731Z","avatar_url":"https://github.com/jrsousadev.png","language":"TypeScript","readme":"## 😺 Live chat project API using mongodb, nodejs, prisma, supertest and jest\n\nAPI Desenvolvida para ser consumida no live-chat-web\n\n## O que foi utilizado no projeto\n\n- [x] Typescript\n- [x] Express\n- [x] MongoDB\n- [x] Mocks\n- [x] Supertest\n- [x] Jest\n- [x] Prisma\n- [x] Nodejs\n\n### Regras de negócio\n\n- [x] Create message\n- [x] Get message\n- [x] Get last message by chat\n- [x] Get all messages by chat\n- [x] Delete all messages\n- [x] Create chat\n- [x] Create group chat\n- [x] Get all chats by user\n- [x] Get chat\n- [x] Create user\n- [x] Get user\n\n### Endpoints Message\n\n- [x] [POST] \"/api/message\"\n- [x] [GET] \"/api/message/chat/:chatId\"\n- [x] [GET] \"/api/message/lastMessage/:chatId\"\n- [x] [GET] \"/api/message/:id\"\n- [x] [DELETE] \"/api/message/all\"\n\n### Endpoints Chat:\n\n- [x] [POST] \"/api/chat\"\n- [x] [POST] \"/api/chat/group\"\n- [x] [GET] \"/api/chat/user/:userId\"\n- [x] [GET] \"/api/chat/:id\"\n\n### Endpoints Use:\n\n- [x] [POST] \"/api/user\"\n- [x] [GET] \"/api/user/:id\"\n\n### Arquitetura do Projeto\n\n```\n.\n├── prisma\n├── src/\n│   └── app\n│     └── modules\n│     └── repositories\n│     └── utils\n│     └── shared\n│       └── errors\n│       └── routes\n│       └── app.ts\n│       └── server.ts\n│       └── websocket.ts\n│   └── config\n│   └── database\n│   └── domain\n│     └── entities\n├── tests/\n│   └── _database\n│   └── _modules\n│   └── _repositories\n│   └── _seed\n└── ...\n```\n\n### Iniciando o Projeto\n\n- Clone o repositório e instale as dependências.\n```sh\n# install dependencies\n\u003e npm i\n\n# copy .env file\n\u003e cp .env.example .env\n\n# Generating mongoDB with prisma models\n\u003e npm prisma generate\n\n# Init tests\n\u003e npm run test\n\n# start project\n\u003e npm run dev\n\n# open in\nhttp://localhost:8080/\n```\n","funding_links":[],"categories":["TypeScript"],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjrsousadev%2Flive-chat-api","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjrsousadev%2Flive-chat-api","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjrsousadev%2Flive-chat-api/lists"}