{"id":15151395,"url":"https://github.com/ahmedmustafamo/chat-api-rails","last_synced_at":"2026-01-19T06:33:03.054Z","repository":{"id":246748987,"uuid":"822127740","full_name":"ahmedmustafamo/chat-api-rails","owner":"ahmedmustafamo","description":"a simple web api for chats and messages","archived":false,"fork":false,"pushed_at":"2024-07-04T10:26:26.000Z","size":74,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-04-07T08:45:07.073Z","etag":null,"topics":["docker","docker-compose","elasticsearch","mysql","rails7","ruby"],"latest_commit_sha":null,"homepage":"","language":"Ruby","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/ahmedmustafamo.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-06-30T11:11:11.000Z","updated_at":"2024-07-04T10:26:30.000Z","dependencies_parsed_at":null,"dependency_job_id":"4a48c7c2-c1a5-41f6-a9ea-e12c7beacc75","html_url":"https://github.com/ahmedmustafamo/chat-api-rails","commit_stats":null,"previous_names":["ahmedmustafa2201/chat-api-rails","ahmedmustafamo/chat-api-rails"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/ahmedmustafamo/chat-api-rails","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ahmedmustafamo%2Fchat-api-rails","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ahmedmustafamo%2Fchat-api-rails/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ahmedmustafamo%2Fchat-api-rails/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ahmedmustafamo%2Fchat-api-rails/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ahmedmustafamo","download_url":"https://codeload.github.com/ahmedmustafamo/chat-api-rails/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ahmedmustafamo%2Fchat-api-rails/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28562405,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-19T03:31:16.861Z","status":"ssl_error","status_checked_at":"2026-01-19T03:31:15.069Z","response_time":67,"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":["docker","docker-compose","elasticsearch","mysql","rails7","ruby"],"created_at":"2024-09-26T15:01:50.527Z","updated_at":"2026-01-19T06:33:03.039Z","avatar_url":"https://github.com/ahmedmustafamo.png","language":"Ruby","funding_links":[],"categories":[],"sub_categories":[],"readme":"# chat-api-rails\n\nA simple chat api built on top of rails7.\n## Installation\n- type `docker-compose up`\n- after the `api` service is up, you can run `make migrate` into another terminal window\n\nI've wrote unit test cases for `ApplicationsController` as a quick sample. To run it, you can execute `make unittest_controllers`\n\nYou can find a very useful commands on the `Makefile` \"for development purposes only\"\n\nTo navigate to Swagger, you can locally visit http://localhost:3000/api-docs\n\n## Sample API invocations:\n### Application\n```\ncurl -X POST -H \"Content-Type: application/json\" -d '{\"name\": \"app1\"}' http://localhost:3000/applications\n```\n\n### Chat\n```\ncurl -X POST -H \"Content-Type: application/json\" http://localhost:3000/applications/{APP_TOKEN}/chats\n```\n\n### Message\nCreation\n```\ncurl -X POST -H \"Content-Type: application/json\" -d '{\"content\": \"Hi John!\"}' http://localhost:3000/applications/{APP_TOKEN}/chats/{CHAT_NUIMBER}/messages\n```\nSearching\nCreation\n```\ncurl -X GET -H \"Content-Type: application/json\" http://localhost:3000/applications/{APP_TOKEN}/chats/{CHAT_NUIMBER}/messages/search/?query={message_str}\n```\n\non `config/environments/development.rb`, you'll find the following hosts list. That's because i'm running my application inside one of my private codespaces. You can remove it if you want\n```ruby\n  config.hosts = [\n    \"localhost:3000\",\n    \"vigilant-space-winner-7xpx5qv7vrfrvv-3000.app.github.dev\", # For debugging inside codespace\n  ]\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fahmedmustafamo%2Fchat-api-rails","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fahmedmustafamo%2Fchat-api-rails","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fahmedmustafamo%2Fchat-api-rails/lists"}