{"id":20563051,"url":"https://github.com/universalmediaserver/api","last_synced_at":"2025-04-14T14:42:28.141Z","repository":{"id":36522506,"uuid":"212042559","full_name":"UniversalMediaServer/api","owner":"UniversalMediaServer","description":"The metadata API that the Universal Media Server application uses","archived":false,"fork":false,"pushed_at":"2025-04-09T18:51:03.000Z","size":21111,"stargazers_count":10,"open_issues_count":25,"forks_count":3,"subscribers_count":8,"default_branch":"main","last_synced_at":"2025-04-09T19:43:29.369Z","etag":null,"topics":["mongodb","mongoose","nodejs","typescript"],"latest_commit_sha":null,"homepage":"","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/UniversalMediaServer.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":"2019-10-01T08:02:32.000Z","updated_at":"2025-04-09T18:50:00.000Z","dependencies_parsed_at":"2023-09-22T13:27:59.995Z","dependency_job_id":"1eb71bd9-3abd-4636-b428-dec4d2e03a14","html_url":"https://github.com/UniversalMediaServer/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/UniversalMediaServer%2Fapi","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/UniversalMediaServer%2Fapi/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/UniversalMediaServer%2Fapi/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/UniversalMediaServer%2Fapi/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/UniversalMediaServer","download_url":"https://codeload.github.com/UniversalMediaServer/api/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248898596,"owners_count":21179799,"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":["mongodb","mongoose","nodejs","typescript"],"created_at":"2024-11-16T04:16:07.615Z","updated_at":"2025-04-14T14:42:28.126Z","avatar_url":"https://github.com/UniversalMediaServer.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# UMS API ![Build Status](https://github.com/UniversalMediaServer/api/workflows/UMS%20API%20tests/badge.svg)\n\n## Development\n\nThe required Node.js and Yarn versions are listed in the `package.json` file. \n\nYou can run `nvm use` and `yvm use` from the project root if you have [Node version manager](https://github.com/nvm-sh/nvm) and [Yarn version manager](https://yvm.js.org)s installed to select the correct version.\n\n### Environment variables\n\n- `MONGO_URL` URL to a running Mongo instance which includes user and password\n- `BYPASS_MONGO` if set to `\"true\"`, will drop the database on each request, to get fresh data from external APIS. Use with caution.\n- `UMS_API_PRIVATE_KEY_LOCATION` and `UMS_API_PUBLIC_KEY_LOCATION` optional absolute locations of SSL keys for HTTPS\n\n### Commands\n\n#### `yarn watch`\nWatches for changes to TypeScript files and compiles them to JavaScript (use `yarn run build` to do it manually)\n\n#### `yarn dev`\nRuns the development server and restarts it when any file is changed\n\n#### `yarn dev:cron`\nRuns the cron job feature using ts-node\n\n#### `yarn start`\nRuns the server\n\n#### `yarn test`\nRuns the test suite\n\n#### `yarn run start:prod`\nStarts the API and cron job in production mode. TypeScript files are compiled in memory on application start.\n\n## Logs\n\nTo view the production logs:\n1. Run `sudo sh -c \"du -ch /var/lib/docker/containers/*/*-json.log\"` to print the list of logs. Look for the biggest one and copy the container ID.\n2. Run `docker logs -f --tail 100 CONTAINER_ID`\n\n## Troubleshooting\n\nIf the production server is unstable, it could be because the Docker cache is filling the hard drive. To fix it, run `docker system prune -a` to clear unused stuff.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Funiversalmediaserver%2Fapi","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Funiversalmediaserver%2Fapi","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Funiversalmediaserver%2Fapi/lists"}