{"id":15528395,"url":"https://github.com/patrickgramatowski/cinema-api","last_synced_at":"2025-03-28T21:42:12.994Z","repository":{"id":49275346,"uuid":"371775103","full_name":"patrickgramatowski/cinema-api","owner":"patrickgramatowski","description":"Cinema API - Ruby","archived":false,"fork":false,"pushed_at":"2021-06-20T21:15:42.000Z","size":309,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-02-03T08:01:43.682Z","etag":null,"topics":["api"],"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/patrickgramatowski.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}},"created_at":"2021-05-28T17:33:56.000Z","updated_at":"2021-06-20T21:15:39.000Z","dependencies_parsed_at":"2022-08-20T05:01:02.525Z","dependency_job_id":null,"html_url":"https://github.com/patrickgramatowski/cinema-api","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/patrickgramatowski%2Fcinema-api","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/patrickgramatowski%2Fcinema-api/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/patrickgramatowski%2Fcinema-api/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/patrickgramatowski%2Fcinema-api/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/patrickgramatowski","download_url":"https://codeload.github.com/patrickgramatowski/cinema-api/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246106668,"owners_count":20724400,"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"],"created_at":"2024-10-02T11:12:51.966Z","updated_at":"2025-03-28T21:42:12.953Z","avatar_url":"https://github.com/patrickgramatowski.png","language":"Ruby","funding_links":[],"categories":[],"sub_categories":[],"readme":"[![Build Status](https://travis-ci.com/patrickgramatowski/cinema-api.svg?branch=master)](https://travis-ci.com/patrickgramatowski/cinema-api)    \n# RubyCamp Monterail API\n    \n## Must have    \n### Functional requirements:    \n   \n- [x] Endpoint to buy tickets/create reservation from ticket desk   \n- [x] Endpoint to buy tickets/create reservation from online application   \n- [x] There should be mechanism (Cronjob? Background job?) to terminate reservation if somebody did not pay ~30 minutes before screening (for reservations created by online application)    \n- [x] There should be email communication provided:    \n- [x] When reservation is created (tickets, seats and price should be attached)   \n- [x] When reservation is terminated (the reason should be attached)   \n- [x] Creating reservation should be robust and there should be validations (for instance - for already taken seats etc., - consider edge cases).   \n- [x] Application should have implemented authentication (there should be logging by user and by employer)   \n- [x] Application should have authorization in terms of role-based separation   \n- [x] Regular user should have ability to create only online reservation   \n- [x] Employer should have ability to create online reservation but also offline reservation\n     \n### Not functional requirements:  \n   \n- [x] API should be documented    \n- [x] Application should have provided seeds and should be generally operational   \n- [x] At least 80% of tests coverage    \n- [x] Application should have connected Sentry and CircleCI (TravisCI added)     \n- [x] Application should be accessible publicly (for instance by Heroku) [Heroku](https://cinema-api-ruby.herokuapp.com/api/movies)   \n- [x] Application should have configured rubocop and should fulfill all rubocop requirements. \n      \n### Nice to have:   \n   \n- [x] JSON:API endpoint   \n- [ ] GraphQL endpoint  \n- [ ] File upload (for instance avatar for user?)  \n- [x] Other functionalities like adding new movies, screenings, cinema halls   \n\n## Technologies:\n- Ruby 2.7.3\n- Rails 6.1.3\n- Bundler 2.2.17\n- PostgreSQL 12.7\n\n### Setup\nTo install the gems required by the application:\n```\nbundle install\n```\n\nSet your username/password (PostgreSQL) in config/database.yml, then run:\n```\nrails db:create\nrails db:migrate\n```\n\n#### Run server\nStart the Rails app:\n```\nrails s\n```\nNow You can find your app by pointing your browser to http://localhost:3000/\n\n##### RubyCamp Monterail 2021\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpatrickgramatowski%2Fcinema-api","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fpatrickgramatowski%2Fcinema-api","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpatrickgramatowski%2Fcinema-api/lists"}