{"id":26678241,"url":"https://github.com/telexintegrations/movie_night","last_synced_at":"2025-03-26T05:15:17.115Z","repository":{"id":278980066,"uuid":"937296649","full_name":"telexintegrations/movie_night","owner":"telexintegrations","description":null,"archived":false,"fork":false,"pushed_at":"2025-02-22T23:20:13.000Z","size":110,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-02-23T00:26:08.850Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","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/telexintegrations.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":"2025-02-22T19:51:57.000Z","updated_at":"2025-02-22T23:20:16.000Z","dependencies_parsed_at":"2025-02-23T00:26:17.084Z","dependency_job_id":"0bd0e27c-1aef-44e4-8613-d210e5e713d2","html_url":"https://github.com/telexintegrations/movie_night","commit_stats":null,"previous_names":["telexintegrations/movie_night"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/telexintegrations%2Fmovie_night","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/telexintegrations%2Fmovie_night/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/telexintegrations%2Fmovie_night/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/telexintegrations%2Fmovie_night/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/telexintegrations","download_url":"https://codeload.github.com/telexintegrations/movie_night/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":245591534,"owners_count":20640692,"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-03-26T05:15:16.551Z","updated_at":"2025-03-26T05:15:17.089Z","avatar_url":"https://github.com/telexintegrations.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"````markdown\n# Movie Night Integration\n\nMovie Night is a simple integration that fetches a list of popular movies from an external API at scheduled intervals and logs them to a Telex channel.\n\n## Features\n\n- Fetches a list of popular movies from The Movie Database (TMDb)\n- Logs the movie list to a Telex channel at a specified interval\n- Customizable interval settings\n\n## Setup Instructions\n\n### Prerequisites\n\n- [Node.js](https://nodejs.org/) installed\n- [Telex](https://telex.im/) account\n- API key from [The Movie Database (TMDb)](https://www.themoviedb.org/)\n\n### Installation\n\n1. Clone this repository:\n   ```sh\n   git clone https://github.com/your-repo/movie-night.git\n   cd movie-night\n   ```\n````\n\n2. Install dependencies:\n   ```sh\n   npm install\n   ```\n3. Create a `.env` file in the project root and add the following:\n   ```env\n   PORT=4000\n   MOVIE_API_KEY=your_tmdb_api_key_here\n   ```\n\n### Running the Application\n\nTo start the server:\n\n```sh\nnpm run dev\n```\n\nThe server will run on `http://localhost:4000` by default.\n\n### Testing the Integration\n\nTo manually trigger the movie fetch and logging:\n\n```sh\ncurl -X POST http://localhost:4000/tick\n```\n\nYou should see a log of popular movies in your Telex channel.\n\n### Deployment\n\nTo deploy the integration:\n\n1. Use a cloud provider (e.g., Heroku, Vercel, or AWS) to host your application.\n2. Ensure your `.env` variables are properly set in your hosting environment.\n3. Set up a cron job or use the provided scheduler to trigger `fetchExternalData()` at the desired interval.\n\n## API Endpoints\n\n### Root Endpoint\n\n- **GET `/`**\n  - Returns a JSON response confirming the integration is active.\n\n### Integration Metadata\n\n- **GET `/integration.json`**\n  - Provides metadata about the integration, including settings and description.\n\n### Manual Trigger\n\n- **POST `/tick`**\n  - Triggers the `fetchExternalData` function manually.\n\n## Screenshots\n\nBelow are screenshots of the integration working in a Telex channel:\n\n![image](assets/telex_screenshot.PNG)\n\nFor any questions or issues, feel free to reach out!\n\n```\n\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftelexintegrations%2Fmovie_night","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftelexintegrations%2Fmovie_night","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftelexintegrations%2Fmovie_night/lists"}