{"id":28549222,"url":"https://github.com/keymanapp/api.keyman.com","last_synced_at":"2025-07-18T18:35:29.680Z","repository":{"id":37587657,"uuid":"169325290","full_name":"keymanapp/api.keyman.com","owner":"keymanapp","description":"https://api.keyman.com/ source","archived":false,"fork":false,"pushed_at":"2025-06-04T01:21:28.000Z","size":12203,"stargazers_count":3,"open_issues_count":14,"forks_count":3,"subscribers_count":4,"default_branch":"master","last_synced_at":"2025-06-04T08:46:26.907Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"PHP","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/keymanapp.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,"zenodo":null}},"created_at":"2019-02-05T22:49:16.000Z","updated_at":"2025-05-21T15:02:42.000Z","dependencies_parsed_at":"2023-01-30T18:45:35.727Z","dependency_job_id":"b7cbea9e-5e46-4c99-836f-ef3af128bcdf","html_url":"https://github.com/keymanapp/api.keyman.com","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/keymanapp/api.keyman.com","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/keymanapp%2Fapi.keyman.com","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/keymanapp%2Fapi.keyman.com/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/keymanapp%2Fapi.keyman.com/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/keymanapp%2Fapi.keyman.com/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/keymanapp","download_url":"https://codeload.github.com/keymanapp/api.keyman.com/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/keymanapp%2Fapi.keyman.com/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":265810354,"owners_count":23831948,"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-10T02:08:41.755Z","updated_at":"2025-07-18T18:35:29.673Z","avatar_url":"https://github.com/keymanapp.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"# api.keyman.com\n\nThe following is outdated and will be replaced with Docker/Apache\n\n## Configuration\n\nCurrently, this site runs only on a Windows host with IIS and Microsoft SQL Server.\n\n## Prerequisites\n\n* Windows\n* Chocolatey\n* PHP 7.4\n* MS SQL Server 2016 or later including FullText Search\n\n* `configure.ps1` automatically installs chocolatey, PHP, Composer, SQL Server and PHP-PDO driver\n  for SQL Server. This script is not particularly sophisticated, so for manual config, copy and\n  paste elements from the script.\n\n## Setup\n\n1. Install the dependencies:\n\n```\ncomposer install\n```\n\n2. Configure your local environment by copying tools/db/localenv.php.in to tools/db/localenv.php\n   and completing the details therein.\n\n3. Build the backend database from live data:\n\n```\ncomposer build\n```\n\n## Tests\n\nTest suites run with mock data from the tests/data folder. If this data is refreshed, fixtures\nwill probably need to be updated accordingly as the data in them will have become stale.\n\nTo run tests:\n\n```\ncomposer test\n```\n\nTo force a rebuild of the test database (e.g. if schema changes):\n\n```\nTEST_REBUILD=1 composer test\n```\n\n## Configuring a new Azure Database\n\n1. Create an Azure SQL Server\n2. Create an Azure SQL Database, e.g. called 'keymanapi'\n3. Run the following script on the master database, replacing password as necessary:\n\n```\n-- logins for staging\nCREATE LOGIN [k0] WITH PASSWORD=N'password'\nGO\n\nCREATE LOGIN [k1] WITH PASSWORD=N'password'\nGO\n\n-- logins for production\nCREATE LOGIN [production_k0] WITH PASSWORD=N'password'\nGO\n\nCREATE LOGIN [production_k1] WITH PASSWORD=N'password'\nGO\n```\n\n4. Run the following script on the keymanapi database:\n\n```\n-- Schemas, users and roles for staging\nCREATE SCHEMA [k0]\nGO\n\nCREATE SCHEMA [k1]\nGO\n\nCREATE USER [k0] FOR LOGIN [k0] WITH DEFAULT_SCHEMA=[k0]\nGO\n\nCREATE USER [k1] FOR LOGIN [k1] WITH DEFAULT_SCHEMA=[k1]\nGO\n\nALTER ROLE db_owner ADD MEMBER k0\nGO\n\nALTER ROLE db_owner ADD MEMBER k1\nGO\n\n-- Schemas, users and roles for production\nCREATE SCHEMA [production_k0]\nGO\n\nCREATE SCHEMA [production_k1]\nGO\n\nCREATE USER [production_k0] FOR LOGIN [production_k0] WITH DEFAULT_SCHEMA=[production_k0]\nGO\n\nCREATE USER [production_k1] FOR LOGIN [production_k1] WITH DEFAULT_SCHEMA=[production_k1]\nGO\n\nALTER ROLE db_owner ADD MEMBER production_k0\nGO\n\nALTER ROLE db_owner ADD MEMBER production_k1\nGO\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkeymanapp%2Fapi.keyman.com","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fkeymanapp%2Fapi.keyman.com","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkeymanapp%2Fapi.keyman.com/lists"}