{"id":19300863,"url":"https://github.com/ivanprogramming/cinema-backend","last_synced_at":"2025-06-22T17:06:21.201Z","repository":{"id":137947136,"uuid":"555802946","full_name":"IvanProgramming/cinema-backend","owner":"IvanProgramming","description":null,"archived":false,"fork":false,"pushed_at":"2022-11-04T01:11:47.000Z","size":60,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-03-30T14:01:46.826Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"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/IvanProgramming.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":"2022-10-22T11:16:31.000Z","updated_at":"2023-05-27T20:59:01.000Z","dependencies_parsed_at":null,"dependency_job_id":"c5b137d5-dd07-430f-b4e8-e2ef1aa9d590","html_url":"https://github.com/IvanProgramming/cinema-backend","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/IvanProgramming/cinema-backend","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/IvanProgramming%2Fcinema-backend","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/IvanProgramming%2Fcinema-backend/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/IvanProgramming%2Fcinema-backend/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/IvanProgramming%2Fcinema-backend/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/IvanProgramming","download_url":"https://codeload.github.com/IvanProgramming/cinema-backend/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/IvanProgramming%2Fcinema-backend/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":261330116,"owners_count":23142481,"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":"2024-11-09T23:16:01.408Z","updated_at":"2025-06-22T17:06:16.182Z","avatar_url":"https://github.com/IvanProgramming.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Backend of Citinez Cinema\n\nSimple API, that reads table from notion and returns value\n\n## Created with\n\n- [Cloudflare Workers](https://workers.cloudflare.com/)\n- [Hono](https://honojs.dev)\n- [Notion](https://notion.so/)\n\n### Deployment\n\n1. Create new Database in Notion from this [template](https://ivanprogramming.notion.site/bd7e7b088edb4daa9887c759107bd131?v=f1f02e21f3a144508fd01d8019caa2a2)\n2. Create new Notion integration\n3. Copy ID of database\n4. Put token and DatabaseID to secrets\n    ```bash\n    echo \"\u003cDATABASE_ID\u003e\" | wrangler secret put NOTION_DATABASE_ID\n    echo \"\u003cINTEGRATION_TOKEN\u003e\" | wrangler secret put NOTION_TOKEN\n    ```\n5. Add integration into notion page\n6. Deploy with `wrangler publish`\n\n[![Deploy to Cloudflare Workers](https://deploy.workers.cloudflare.com/button)](https://deploy.workers.cloudflare.com/?url=https://github.com/ivanprograming/cinema-backend)\n\n### Working with API\n\nFilm structure by example\n```json\n{\n  \"id\": \"street\",\n  \"title\": \"Волк с Уолл-Стрит\",\n  \"mpd\": \"https://records.ivanisplaying.xyz/street/dash/manifest.mpd\",\n  \"tags\": [\n    {\n      \"icon\": \"#️⃣\",\n      \"text\": \"просмотр-фильма\"\n    },\n    {\n      \"icon\": \"#️⃣\",\n      \"text\": \"citinez\"\n    },\n    {\n      \"icon\": \"🗓️\",\n      \"text\": \"2022-10-10\"\n    }\n  ],\n  \"thumbnail\": \"https://records.ivanisplaying.xyz/preview/cr-075743i4-prv.jpg\"\n}\n```\n\n#### /films\nReturns list with all films \n```json\n{\n  \"isError\": false,\n  \"data\": {\n    \"films\": [\n      {\n        \"id\": \"street\",\n        \"title\": \"Волк с Уолл-Стрит\",\n        \"mpd\": \"https://records.ivanisplaying.xyz/street/dash/manifest.mpd\",\n        \"tags\": [\n          {\n            \"icon\": \"#️⃣\",\n            \"text\": \"просмотр-фильма\"\n          },\n          {\n            \"icon\": \"#️⃣\",\n            \"text\": \"citinez\"\n          },\n          {\n            \"icon\": \"🗓️\",\n            \"text\": \"2022-10-10\"\n          }\n        ],\n        \"thumbnail\": \"https://records.ivanisplaying.xyz/preview/cr-075743i4-prv.jpg\"\n      }\n    ]\n  }\n}\n```\n\n#### /film/:id\nReturn film with specified ID\n```json\n{\n  \"isError\": false,\n  \"data\": {\n    \"id\": \"street\",\n    \"title\": \"Волк с Уолл-Стрит\",\n    \"mpd\": \"https://records.ivanisplaying.xyz/street/dash/manifest.mpd\",\n    \"tags\": [\n      {\n        \"icon\": \"#️⃣\",\n        \"text\": \"просмотр-фильма\"\n      },\n      {\n        \"icon\": \"#️⃣\",\n        \"text\": \"citinez\"\n      },\n      {\n        \"icon\": \"🗓️\",\n        \"text\": \"2022-10-10\"\n      }\n    ],\n    \"thumbnail\": \"https://records.ivanisplaying.xyz/preview/cr-075743i4-prv.jpg\"\n  }\n}\n```\nMay return 404 on unkown ID\n```json\n{\n  \"isError\": true,\n  \"data\": {\n    \"errorCode\": 2,\n    \"errorDetails\": \"Film with specified ID don't exists\"\n  }\n}\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fivanprogramming%2Fcinema-backend","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fivanprogramming%2Fcinema-backend","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fivanprogramming%2Fcinema-backend/lists"}