{"id":25811304,"url":"https://github.com/gregmturek/room-booker","last_synced_at":"2025-07-08T10:10:35.781Z","repository":{"id":217216521,"uuid":"396662798","full_name":"gregmturek/room-booker","owner":"gregmturek","description":null,"archived":false,"fork":false,"pushed_at":"2021-11-05T19:25:07.000Z","size":113,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-02-28T08:27:29.383Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Kotlin","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/gregmturek.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":"2021-08-16T06:57:11.000Z","updated_at":"2021-11-05T19:25:10.000Z","dependencies_parsed_at":null,"dependency_job_id":"4f088ac8-f60c-4a95-898f-0ac8fbdb5caa","html_url":"https://github.com/gregmturek/room-booker","commit_stats":null,"previous_names":["gregmturek/room-booker"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/gregmturek/room-booker","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gregmturek%2Froom-booker","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gregmturek%2Froom-booker/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gregmturek%2Froom-booker/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gregmturek%2Froom-booker/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/gregmturek","download_url":"https://codeload.github.com/gregmturek/room-booker/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gregmturek%2Froom-booker/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":264248024,"owners_count":23579059,"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":[],"created_at":"2025-02-28T00:38:23.154Z","updated_at":"2025-07-08T10:10:35.773Z","avatar_url":"https://github.com/gregmturek.png","language":"Kotlin","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Room Booker\n\nThis is an example Android app that displays a list of rooms and allows users to book them. It's somewhat unrealistic but demonstrates what can be built within a few hours with Android Jetpack libraries, Retrofit, and Kotlin flows using MVI architecture. \n\nFeatured dependencies:\n- [Compose](https://developer.android.com/jetpack/compose)\n- [Hilt](https://developer.android.com/jetpack/androidx/releases/hilt)\n- [Room](https://developer.android.com/jetpack/androidx/releases/room) \n- [Retrofit](https://square.github.io/retrofit/) with [Moshi](https://github.com/square/moshi/)\n- [Coil](https://github.com/coil-kt/coil)\n\nKey features:\n- Room data from API requests is backed up to a database so that the list of rooms can be displayed when users are offline. This includes the images, which are cached to memory and disk. Fresh data is fetched after each button tap and when users swipe down at the top of the list. \n- The UI looks nice in light or dark mode and in portrait or landscape, has a collapsing app bar, uses snackbars for button feedback, and has loading spinners for images and swipe-to-refresh.  \n\nWith more time, I would have addressed the following:\n- Unit/UI testing is needed!\n- Although the UI is adaptive for different screen sizes and orientations, it would be better to alter the layout for larger screen sizes and landscape orientations. I held off on using it because it's still experimental, but the [LazyVerticalGrid](https://developer.android.com/jetpack/compose/lists#grids) composable looks promising and seems to work well in my testing as a scrollable grid of cells that adapts to the screen size.\n- There should be improved handling of errors and exceptions to provide a better UX. Why did a booking fail? When is there a problem with the internet connection?\n- To actually serve as a usable app, at a minimum, there needs to be a way when booking to indicate who the users are and what date and time they want among those available.\n\n## Installation\n\n1. Install or update to (at least) Android Studio Arctic Fox | 2020.3.1.\n2. Clone this repository and import it into Android Studio.\n\n## License\n\nMIT License\n\nCopyright (c) [2021] [Greg Turek]\n\nPermission is hereby granted, free of charge, to any person obtaining a copy\nof this software and associated documentation files (the \"Software\"), to deal\nin the Software without restriction, including without limitation the rights\nto use, copy, modify, merge, publish, distribute, sublicense, and/or sell\ncopies of the Software, and to permit persons to whom the Software is\nfurnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in all\ncopies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\nAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\nLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\nOUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\nSOFTWARE.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgregmturek%2Froom-booker","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fgregmturek%2Froom-booker","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgregmturek%2Froom-booker/lists"}