{"id":13630345,"url":"https://github.com/shotstack/coronavirus-data-video-demo","last_synced_at":"2025-04-17T13:32:09.222Z","repository":{"id":42284588,"uuid":"250781165","full_name":"shotstack/coronavirus-data-video-demo","owner":"shotstack","description":"A demo to show how data can be used to generate videos using the Shotstack API","archived":false,"fork":false,"pushed_at":"2023-01-24T01:46:25.000Z","size":76,"stargazers_count":6,"open_issues_count":4,"forks_count":5,"subscribers_count":3,"default_branch":"main","last_synced_at":"2024-08-01T22:45:47.990Z","etag":null,"topics":["coronavirus","coronavirus-video","generative-design","video","video-edit-sdk","video-editing"],"latest_commit_sha":null,"homepage":"https://bit.ly/3bAJkZe","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/shotstack.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2020-03-28T11:48:16.000Z","updated_at":"2023-05-09T02:13:57.000Z","dependencies_parsed_at":"2023-01-24T10:31:41.453Z","dependency_job_id":null,"html_url":"https://github.com/shotstack/coronavirus-data-video-demo","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/shotstack%2Fcoronavirus-data-video-demo","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/shotstack%2Fcoronavirus-data-video-demo/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/shotstack%2Fcoronavirus-data-video-demo/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/shotstack%2Fcoronavirus-data-video-demo/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/shotstack","download_url":"https://codeload.github.com/shotstack/coronavirus-data-video-demo/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":223757416,"owners_count":17197553,"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":["coronavirus","coronavirus-video","generative-design","video","video-edit-sdk","video-editing"],"created_at":"2024-08-01T22:01:39.544Z","updated_at":"2024-11-08T21:31:33.123Z","avatar_url":"https://github.com/shotstack.png","language":"JavaScript","funding_links":[],"categories":["JavaScript"],"sub_categories":[],"readme":"# Coronavirus (COVID-19) Data Generated Videos\n\nThis is a demo to showcase using a data source to generate videos using the [Shotstack API](https://shotstack.io/docs/api/index.html).\n\n[![covid-data-video-opt](https://user-images.githubusercontent.com/1064199/77845439-b2939300-71fa-11ea-826b-dd0c10f2e19a.gif)](https://youtu.be/TOQAbfCNV_o)\n\nA NodeJS script loops through a data set of Coronavirus (Covid-19) global pandemic cases and deaths \nsourced from [Our World In Data](https://ourworldindata.org/coronavirus-source-data) and generates a \nvideo for a selected country.\n\n---\n\n## Requirements\n\nThis project was developed using Node v10.15.3 and NPM 6.4.1.\n\n### API Key\nTo run the project you will need a Shotstack API key. If you do not have a key you can sign up via \nthe [Shotstack website](https://shotstack.io/).\n\nOnce you have a key, copy the `.env.dist` file and name it `.env`. Then add your staging API key next to \nthe `SHOTSTACK_KEY=` parameter.\n\nYour `.env` file should look something like:\n\n```\nSHOTSTACK_ENDPOINT=https://api.shotstack.io/stage\nSHOTSTACK_KEY=KnYTD1jak82B83hwvL8kT5jlT66MMVqI2zE4dPPs\n```\n\n---\n\n## Installation\n\nInstall dependencies using the following: \n\n```\nnpm install\n```\n\n---\n\n## Usage\n\n### Fetch/Update Data\n\nFetch the latest Coronavirus dataset:\n\n```\nnpm run dataset\n```\n\nA CSV file `full_data.csv` is downloaded and saved in the project root directory.\n\n### List Countries\n\nDisplay the list of countries available in the CSV file:\n\n```\nnpm run list\n```\n\n### Generate Video\n\nRun the following command with the country you wish to generate a video for:\n\n```\nnpm run generate -- --country [Country]\n```\n\nReplace [Country] with the country you want to generate a video for, i.e.\n\n```\nnpm run generate -- --country 'Australia'\n```\n\nNote: the country value is case sensitive and must be entered exactly as it is stored in\nthe `Location` column in the CSV file. Use the `npm run list` command to see a list of \ncountries.\n\nThe edit request will be sent to the Shotstack API to be queued for rendering. After approximately \n20 seconds the video will be ready and the URL will be output to the terminal.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fshotstack%2Fcoronavirus-data-video-demo","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fshotstack%2Fcoronavirus-data-video-demo","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fshotstack%2Fcoronavirus-data-video-demo/lists"}