{"id":23067027,"url":"https://github.com/dvsa/ftts-tr-persister","last_synced_at":"2025-04-03T09:13:59.209Z","repository":{"id":86167387,"uuid":"575346709","full_name":"dvsa/ftts-tr-persister","owner":"dvsa","description":null,"archived":false,"fork":false,"pushed_at":"2023-01-01T16:20:08.000Z","size":131,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":3,"default_branch":"main","last_synced_at":"2025-02-08T22:28:35.341Z","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/dvsa.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"license.md","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-12-07T10:00:07.000Z","updated_at":"2024-01-03T09:23:49.000Z","dependencies_parsed_at":"2023-03-13T08:44:50.556Z","dependency_job_id":null,"html_url":"https://github.com/dvsa/ftts-tr-persister","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/dvsa%2Fftts-tr-persister","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dvsa%2Fftts-tr-persister/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dvsa%2Fftts-tr-persister/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dvsa%2Fftts-tr-persister/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/dvsa","download_url":"https://codeload.github.com/dvsa/ftts-tr-persister/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246970323,"owners_count":20862509,"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-12-16T05:15:56.831Z","updated_at":"2025-04-03T09:13:59.186Z","avatar_url":"https://github.com/dvsa.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Test Results Persister\n\nRetrieves configured number of messages from the queue\n\n## Creating the local.settings.json\n\nFor this component, we use a `local.settings.json` file to store all environment variables to run the project locally.\n\nYou can create this file by running `npm run copy-config`\n\nLocally `CRM_CLIENT_ID` and `CRM_CLIENT_SECRET` are required for CRM authentication. `USER_ASSIGNED_ENTITY_CLIENT_ID` is not needed (only used deployed).\n\n## Building the project\n\nInstall node modules\n\n```bash\nnpm install\n```\n\nRun the build process\n\n```bash\nnpm run build\n```\n\n## Running the project locally\n\n- Run `npm run copy-config` and fill in the missing configuration in your local.settings.json. Set connection strings as below, pointing to deployed/local storage.\n- Run `npm start`. Running this start script triggers the `prestart` script which will automatically run the build process. The function will start on port `7074` by default. This can be configured within the `package.json` directly via the script.\n- The function will run as per the cron schedule specified. Or you can invoke the function manually via HTTP as explained below.\n\n### Debugging\n\nDebug locally using the `.vscode/launch.json` 'Attach to Node Functions' config. Note the function will run on the default port `7071`.\n\n## Tests\n\nAll tests can be found in the `tests` folder.\n\nTo run all tests:\n\n```bash\nnpm test\n```\n\nTo run the tests in watch mode:\n\n```bash\nnpm run test:watch\n```\n\nTo run test coverage:\n\n```bash\nnpm run test:coverage\n```\n\nSee the generated coverage report in the `coverage` folder created after running the tests.\n\n## Linter\n\nWe use custom lint rules with `eslint` to enforce coding style for this project.\n\nTo run the linter:\n\n```bash\nnpm run lint\n```\n\nTo run the lint and fix any issues that can be resolved automatically:\n\n```bash\nnpm run lint:fix\n```","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdvsa%2Fftts-tr-persister","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdvsa%2Fftts-tr-persister","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdvsa%2Fftts-tr-persister/lists"}