{"id":28938183,"url":"https://github.com/swrdna/good-night","last_synced_at":"2026-01-20T16:26:16.937Z","repository":{"id":300246911,"uuid":"997726153","full_name":"swrdna/good-night","owner":"swrdna","description":"Sleep Tracking API Service","archived":false,"fork":false,"pushed_at":"2025-06-20T15:54:59.000Z","size":92,"stargazers_count":0,"open_issues_count":1,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2025-06-20T16:49:50.170Z","etag":null,"topics":["api","ruby","ruby-on-rails"],"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/swrdna.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,"zenodo":null}},"created_at":"2025-06-07T03:46:53.000Z","updated_at":"2025-06-20T15:55:03.000Z","dependencies_parsed_at":"2025-06-20T16:49:54.317Z","dependency_job_id":"ff4b537c-820b-4977-a88d-0d2a17010660","html_url":"https://github.com/swrdna/good-night","commit_stats":null,"previous_names":["swrdna/good-night"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/swrdna/good-night","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/swrdna%2Fgood-night","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/swrdna%2Fgood-night/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/swrdna%2Fgood-night/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/swrdna%2Fgood-night/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/swrdna","download_url":"https://codeload.github.com/swrdna/good-night/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/swrdna%2Fgood-night/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":261374428,"owners_count":23148978,"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":["api","ruby","ruby-on-rails"],"created_at":"2025-06-22T22:07:10.254Z","updated_at":"2026-01-20T16:26:16.928Z","avatar_url":"https://github.com/swrdna.png","language":"Ruby","funding_links":[],"categories":[],"sub_categories":[],"readme":"![ruby](https://img.shields.io/badge/Ruby-%23CC342D?logo=ruby)\n![rails](https://img.shields.io/badge/Rails-%23CC0000?logo=rubyonrails)\n![psql](https://img.shields.io/badge/PostgreSQL-%234169E1?logo=postgresql\u0026logoColor=%23ffffff)\n![docker](https://img.shields.io/badge/Docker-white?logo=docker)\n\n# Good Night - Sleep Tracking Application\n\nAPI service for tracking sleep. Users can record their sleep sessions, follow other users and view following user's sleep activity\n\n## Features\n\n- Sleep session tracking\n- Sleep duration\n- User following system\n- Sleep feed showing friends' sleep activity\n\n## Prerequisites\n\n- Ruby 3.4.4\n- Rails 7.2\n- PostgreSQL\n- Docker (optional)\n\n## Installation\n\n1. Clone the repository\n\n```bash\ngit clone https://github.com/swrdna/good-night.git\ncd good-night\n```\n\n2. Install dependencies\n\n```bash\nbundle install\n```\n\n3. Create .env file\n\n```bash\ncp .env.example .env\n```\n\n4. Set up the database\n\n```bash\nrails db:create db:migrate\n```\n\n5. Data seed (optional)\n\n```bash\nrails db:seed\n```\n\n6. Start the server\n\n```bash\nrails s\n```\n\n## Running with Docker\n\n1. Create .env file\n\n```bash\ncp .env.example .env\n```\n\n2. Run docker command\n\n```bash\ndocker compose up\n```\n\n3. Setup database\n\n```bash\ndocker compose exec api bin/rails db:create db:migrate\n```\n\n4. Data seed (optional)\n\n```bash\ndocker compose exec api bin/rails db:seed\n```\n\n## Test\n\nRun all the tests\n\n```bash\n  rspec\n```\n\nRun specific test\n\n```bash\n  rspec path/to/your/test.rb\n```\n\n## Documentation\n\n### API\n\nView the complete API documentation at [http://localhost:3000/docs/api](http://localhost:3000/docs/api) when the application is running.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fswrdna%2Fgood-night","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fswrdna%2Fgood-night","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fswrdna%2Fgood-night/lists"}