{"id":21496526,"url":"https://github.com/mlibrary/pride","last_synced_at":"2025-07-15T19:32:34.995Z","repository":{"id":42653520,"uuid":"45631899","full_name":"mlibrary/pride","owner":"mlibrary","description":"JavaScript library for interfacing with the U-M Library search backend","archived":false,"fork":false,"pushed_at":"2024-08-01T17:15:44.000Z","size":2290,"stargazers_count":5,"open_issues_count":0,"forks_count":0,"subscribers_count":7,"default_branch":"master","last_synced_at":"2024-08-02T16:43:19.928Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/mlibrary.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.txt","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":"2015-11-05T18:46:02.000Z","updated_at":"2024-08-01T17:15:41.000Z","dependencies_parsed_at":"2023-10-25T14:57:56.330Z","dependency_job_id":"17241aef-6dd5-4c72-901b-cb6818b8429c","html_url":"https://github.com/mlibrary/pride","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/mlibrary%2Fpride","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mlibrary%2Fpride/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mlibrary%2Fpride/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mlibrary%2Fpride/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/mlibrary","download_url":"https://codeload.github.com/mlibrary/pride/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":226064471,"owners_count":17568036,"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-11-23T16:16:55.053Z","updated_at":"2024-11-23T16:16:55.678Z","avatar_url":"https://github.com/mlibrary.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Pride\nPride is a JavaScript library that handles all communication between the [University of Michigan Library Search](https://search.lib.umich.edu/everything)'s [front-end application](https://github.com/mlibrary/search) and the [backend](https://github.com/mlibrary/spectrum).\n\n## To Start\n\nRun the `init.sh` script.\n\n```bash\n./init.sh\n```\n\nAll files that are included in the build are found under `src/`. The directory is organized by object property. Examples:\n* `Pride.init` is found in `src/Pride/init.js`\n* `Pride.Util` is found in `src/Pride/Util/index.js`\n* `Pride.Util.escape` is found in `src/Pride/Util/escape.js`\n\nThe `pride.min.js` build is used for applications that include `pride`. The `pride.js` build is used for testing.\n\n## Unit Tests\n\n```bash\nnpm run test\n```\n\nThe organization of the `spec/` directory mirrors the `src/` directory. Each test file ends in `.spec.js`.\n\n## Testing in Search\n\n1. Clone [mlibrary/search](https://github.com/mlibrary/search).\n    ```bash\n    gh repo clone mlibrary/search\n    ```\n2. Navigate to the repository and open the `package.json` file. Edit the dependency URL for `pride` to point to your local `pride` repository.\n    ```bash\n    \"pride\": \"file:../pride\",\n    ```\n    Note: If you want to test a specific branch, add `#` followed by the branch name to the end of the URL.\n    ```bash\n    \"pride\": \"git+https://github.com/mlibrary/pride.git#your-branch-here\",\n    ```\n3. Install\n    ```bash\n    npm install\n    ```\n    Note: If this is not a fresh clone, do a clean install.\n    ```bash\n    rm -rf node_modules \u0026\u0026 package-lock.json \u0026\u0026 npm install\n    ```\n4. Run locally\n    ```bash\n    npm start\n    ```\n\nWhile Search is running locally, [the site](http://localhost:3000/) will automatically refresh whenever `pride.min.js` changes.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmlibrary%2Fpride","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmlibrary%2Fpride","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmlibrary%2Fpride/lists"}