{"id":21496512,"url":"https://github.com/mlibrary/account","last_synced_at":"2025-07-15T19:32:38.564Z","repository":{"id":39010267,"uuid":"304083393","full_name":"mlibrary/account","owner":"mlibrary","description":null,"archived":false,"fork":false,"pushed_at":"2024-11-05T21:35:17.000Z","size":3814,"stargazers_count":2,"open_issues_count":15,"forks_count":0,"subscribers_count":8,"default_branch":"main","last_synced_at":"2024-11-05T22:30:03.549Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"https://account.lib.umich.edu","language":"Ruby","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":"2020-10-14T17:09:38.000Z","updated_at":"2024-11-05T21:28:03.000Z","dependencies_parsed_at":"2023-12-15T20:59:10.197Z","dependency_job_id":"f79498b1-4098-4a9e-8bfe-ecd85ff6c86a","html_url":"https://github.com/mlibrary/account","commit_stats":null,"previous_names":[],"tags_count":64,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mlibrary%2Faccount","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mlibrary%2Faccount/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mlibrary%2Faccount/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mlibrary%2Faccount/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/mlibrary","download_url":"https://codeload.github.com/mlibrary/account/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":226064472,"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:51.858Z","updated_at":"2024-11-23T16:16:52.920Z","avatar_url":"https://github.com/mlibrary.png","language":"Ruby","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Account\n\nhttps://account.lib.umich.edu\n\nThis is the code repository for the University of Michigan Library Account application.\n\n## Setting up account for development\n\nClone the repo\n\n```bash\ngit clone git@github.com:mlibrary/account.git\ncd account\n```\n\nrun the `init.sh` script. \n```bash\n./init.sh\n```\n\nedit .env with the appropriate environment variables \n\nstart containers\n\n```bash\ndocker compose up -d\n```\n\nwatch then build styles or scripts (optional)\n\n```bash\n# styles\ndocker compose run --rm web npm run watch-css\n# scripts\ndocker compose run --rm web npm run watch-js\n```\n\nIn a browser, go to http://localhost:4567 to see the website.\n\n## Turning Weblogin on or off\nIn `.env` there's an environment variable \"WEBLOGIN_ON\". If it is \"true\" weblogin will be turned on in development mode. \nIf it is \"false\" weblogin will be turned off. Having weblogin off will turn on the developer tools form on each page, and you will be able to toggle \nthrough the mlibrary.acct.testing friend accounts. These will have circulation data in the Alma sandbox. \n\n\n## Adding a javascript file for a specific page\nIn `lib/routes/`, find the route for the page you wish to add a `.js` file. For the `erb`, make sure the `locals` includes `has_js:true`.\n\nWhen creating a `.js` file, they must all be in the `./js` directory. Naming the file matches the slug version of the page's URL path, where the first `/` is removed and all following `/` are replaced with `-`. For example: creating a JavaScript file for `https://account.lib.umich.edu/current-checkouts/u-m-library` would require the file `./js/current-checkouts-u-m-library.js`.\n\n## Testing with the actual Nelnet testing site\nTo try using the actual Nelnet testing site for testing fines and fees, you need to get the correct environment variables. There's extra documentation with example credit cards and input that will trigger different responses. Check the My Account confluenc page for more info.\n\n## Kubernetes configuration\nThe Kubernetes configuration lives in [patron-account-kube](https://github.com/mlibrary/patron-account-kube)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmlibrary%2Faccount","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmlibrary%2Faccount","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmlibrary%2Faccount/lists"}