{"id":28560530,"url":"https://github.com/sr258/h5p-sharedb-test","last_synced_at":"2025-06-10T09:37:13.499Z","repository":{"id":97388701,"uuid":"442571196","full_name":"sr258/h5p-sharedb-test","owner":"sr258","description":null,"archived":false,"fork":false,"pushed_at":"2023-10-03T15:33:51.000Z","size":608,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-06-04T19:37:10.820Z","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":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/sr258.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,"governance":null}},"created_at":"2021-12-28T20:03:22.000Z","updated_at":"2022-01-21T06:13:40.000Z","dependencies_parsed_at":null,"dependency_job_id":"55026491-f366-462e-beb3-c928de555766","html_url":"https://github.com/sr258/h5p-sharedb-test","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sr258%2Fh5p-sharedb-test","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sr258%2Fh5p-sharedb-test/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sr258%2Fh5p-sharedb-test/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sr258%2Fh5p-sharedb-test/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/sr258","download_url":"https://codeload.github.com/sr258/h5p-sharedb-test/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sr258%2Fh5p-sharedb-test/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":259049331,"owners_count":22797914,"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-06-10T09:37:06.749Z","updated_at":"2025-06-10T09:37:13.491Z","avatar_url":"https://github.com/sr258.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# H5P shared state sample\n\nA simple voting content types that demonstrates how to use lumieducation's\nshared state server.\n\n## Getting started (development)\n\nRequirements:\n\n- NodeJS \u003e= 16\n- NPM \u003e= 7\n\nClone this repository with git and check out the branch that you are interested\nin (or choose the branch first and then download the archive, but learning\nhow to use git really makes sense).\n\nChange to the repository directory and run\n\n```bash\nnpm install\n```\n\nto install required modules. Afterwards, you can build the project using\n\n```bash\nnpm run build\n```\n\nor, if you want to let everything be built continuously while you are making\nchanges to the code, run\n\n```bash\nnpm run build:watch\n```\n\nBefore putting the code in production, you should always run `npm run build`.\n\nThe build process will transpile TypeScript to JS that can be used in browser.\nThe build process will also move the source files into one distribution file and\nminify the code.\n\n## Dependency\n\nThere is a dependency on the H5P library [H5P.SharedStateClient](https://github.com/sr258/h5p-shared-state-client). You need to include it in the .h5p bundle.\n\n## Using\n\n- Make sure the directory of this repository is \"H5P.ShareDBTest-0.1\" (or the\n  current version number).\n- run `npm build`\n- Install the H5P CLI tool from NPM (`npm install -g h5p`)\n- go the parent directory of the repo\n- run `h5p pack h5p-sharedb-test h5p-shared-state-client out.h5p`\n- Upload the resulting libraries.h5p file to WordPress (Make sure you've set these values in wp-config.php when you want to upload the same version again):\n  - define('H5P_DEV', true);\n  - define('H5P_DISABLE_AGGREGATION', true);\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsr258%2Fh5p-sharedb-test","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsr258%2Fh5p-sharedb-test","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsr258%2Fh5p-sharedb-test/lists"}