{"id":23009912,"url":"https://github.com/openactive/data-model-validator-site","last_synced_at":"2025-04-02T16:14:46.900Z","repository":{"id":39587754,"uuid":"140412536","full_name":"openactive/data-model-validator-site","owner":"openactive","description":"User interface for the OpenActive data model validator","archived":false,"fork":false,"pushed_at":"2025-01-30T23:56:06.000Z","size":1965,"stargazers_count":0,"open_issues_count":0,"forks_count":1,"subscribers_count":9,"default_branch":"master","last_synced_at":"2025-02-08T07:08:32.194Z","etag":null,"topics":["validators"],"latest_commit_sha":null,"homepage":null,"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/openactive.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,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2018-07-10T09:56:51.000Z","updated_at":"2025-01-30T23:56:08.000Z","dependencies_parsed_at":"2025-01-21T13:27:09.362Z","dependency_job_id":"c9f9baf6-edd4-4384-aa46-0aa0ce0eb3d2","html_url":"https://github.com/openactive/data-model-validator-site","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/openactive%2Fdata-model-validator-site","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/openactive%2Fdata-model-validator-site/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/openactive%2Fdata-model-validator-site/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/openactive%2Fdata-model-validator-site/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/openactive","download_url":"https://codeload.github.com/openactive/data-model-validator-site/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246847137,"owners_count":20843444,"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":["validators"],"created_at":"2024-12-15T09:16:30.828Z","updated_at":"2025-04-02T16:14:46.867Z","avatar_url":"https://github.com/openactive.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# OpenActive Data Model Validator Site\n\nThis site uses the [OpenActive Data Model Validator](https://github.com/openactive/data-model-validator) to allow developers to validate JSON models to the latest [OpenActive Modelling Opportunity Data](https://openactive.io/modelling-opportunity-data/) specification.\n\n[![Test and Deploy](https://github.com/openactive/data-model-validator-site/actions/workflows/test-and-deploy.yml/badge.svg?branch=master)](https://github.com/openactive/data-model-validator-site/actions/workflows/test-and-deploy.yml)\n[![Known Vulnerabilities](https://snyk.io/test/github/openactive/data-model-validator-site/badge.svg)](https://snyk.io/test/github/openactive/data-model-validator-site)\n\n## Development\n\n### Getting started\n\n```shell\n$ git clone git@github.com:openactive/data-model-validator-site.git\n$ cd data-model-validator-site\n$ npm install\n```\n### Running the local development server\n\n```shell\n$ npm run dev\n```\n\nThis command makes use of [concurrently](https://www.npmjs.com/package/concurrently) to run both the [express](https://expressjs.com/) backend server alongside the [webpack development server](https://webpack.js.org/configuration/dev-server/).\n\nIt will watch source files and perform live-reloads in the browser.\n\n### Building\n\nTo build using webpack, simply run:\n\n```shell\n$ npm run build\n```\n\nThis will compile all source files and output to the `/dist` directory.\n\nTo run the production version, you can then run:\n\n```shell\n$ npm start\n```\n\n### `.env`\n\nYou can create a local `.env` to customise certain aspects of the site.\n\n```shell\n# Override for the user agent string sent by the RPDE validator\n# Default: \"RPDE_Validator/version (+https://validator.openactive.io/rpde)\"\nREACT_APP_RPDE_USER_AGENT=\n\n# The timeout for a request made by the RPDE validator (milliseconds)\n# Must be non-zero\n# Default: 10000\nREACT_APP_RPDE_TIMEOUT_MS=\n\n# The delay between requests made by the RPDE validator (milliseconds)\n# Default: 0\nREACT_APP_RPDE_REQUEST_DELAY_MS=\n\n# The number of feed pages the RPDE validator should\n# walk through\n# Must be non-zero\n# Default: 20\nREACT_APP_RPDE_PAGE_LIMIT=\n\n# The number of items to process in the model validator from an\n# RPDE feed\n# Must be non-zero\n# Default: 10\nREACT_APP_MODEL_RPDE_ITEM_LIMIT=\n\n# Sets the number of seconds that the remote JSON loader should\n# cache requests for.\n# Default: 3600\nREACT_APP_MODEL_REMOTE_CACHE_TTL_SECONDS=\n\n# The tracking ID for Google Analytics\nVALIDATOR_GOOGLE_ANALYTICS=\n```\n\n\n### Google Analytics\n\nTo build with Google Analytics turned on, make sure you set the `VALIDATOR_GOOGLE_ANALYTICS` environment variable.\n\ne.g.\n\n```shell\n$ export VALIDATOR_GOOGLE_ANALYTICS=UA-XXXX-Y\n$ npm run build\n```\n\nLocally, you can also set this in your `.env` file.\n\nHeroku builds should have this set in their config vars.\n\n### Deploying\n\nTo deploy to heroku, use the git method as described in the [Heroku documentation](https://devcenter.heroku.com/articles/git#for-an-existing-heroku-app)\n\n* [Install the Heroku CLI](https://devcenter.heroku.com/articles/heroku-cli#download-and-install)\n* Add the Heroku remote to your local machine:\n\n  ```shell\n  $ heroku git:remote -a data-model-validator\n  ```\n* Push the latest changes to the new remote:\n\n  ```shell\n  $ git push heroku\n  Counting objects: 17, done.\n  Delta compression using up to 8 threads.\n  Compressing objects: 100% (17/17), done.\n  Writing objects: 100% (17/17), 3.34 KiB | 3.34 MiB/s, done.\n  Total 17 (delta 11), reused 0 (delta 0)\n  remote: Compressing source files... done.\n  remote: Building source:\n  remote: \n  remote: -----\u003e Node.js app detected\n  remote: \n  remote: -----\u003e Creating runtime environment\n  remote:        \n  remote:        NPM_CONFIG_LOGLEVEL=error\n  remote:        NODE_VERBOSE=false\n  remote:        NODE_ENV=production\n  remote:        NODE_MODULES_CACHE=false\n  \u003cSNIP\u003e\n  remote: -----\u003e Compressing...\n  remote:        Done: 35.7M\n  remote: -----\u003e Launching...\n  remote:        Released v1\n  remote:        https://data-model-validator.herokuapp.com/ deployed to Heroku\n  remote: \n  remote: Verifying deploy... done.\n  To https://git.heroku.com/data-model-validator.git\n     cdc8b03..683d803  master -\u003e master\n  ```\n\n### Testing\n\n#### Local\n\nThis project uses [Jasmine](https://jasmine.github.io/) for its tests. All spec files are located alongside the files that they target.\n\nTo run tests locally, run:\n\n```shell\n$ npm test\n```\n\nThe test run will also include a run of [eslint](https://eslint.org/). To run the tests without these, use:\n\n```shell\n$ npm run test-no-lint\n```\n\n#### BrowserStack\n\nWe also make use of BrowserStack for cross-platform testing, ensuring a consistent experience across the latest browsers.\n\n[![BrowserStack](./spec/browserstack-logo-600x315.png)](https://www.browserstack.com/)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fopenactive%2Fdata-model-validator-site","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fopenactive%2Fdata-model-validator-site","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fopenactive%2Fdata-model-validator-site/lists"}