{"id":23700726,"url":"https://github.com/redbox-mint/sails-hook-redbox-labarchives","last_synced_at":"2026-02-04T04:05:09.790Z","repository":{"id":216617662,"uuid":"718441786","full_name":"redbox-mint/sails-hook-redbox-labarchives","owner":"redbox-mint","description":"ReDBox Provisioner plugin for LabArchives","archived":false,"fork":false,"pushed_at":"2024-12-05T02:08:38.000Z","size":6635,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":4,"default_branch":"master","last_synced_at":"2025-08-02T11:47:41.198Z","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":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/redbox-mint.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":"support/build/compileAngularLegacy.sh","governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2023-11-14T04:37:56.000Z","updated_at":"2024-12-05T02:06:50.000Z","dependencies_parsed_at":"2024-04-09T04:26:34.535Z","dependency_job_id":"5fb50044-8db2-4ffb-8d37-2d285e018a5e","html_url":"https://github.com/redbox-mint/sails-hook-redbox-labarchives","commit_stats":null,"previous_names":["redbox-mint/sails-hook-redbox-labarchives"],"tags_count":5,"template":false,"template_full_name":null,"purl":"pkg:github/redbox-mint/sails-hook-redbox-labarchives","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/redbox-mint%2Fsails-hook-redbox-labarchives","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/redbox-mint%2Fsails-hook-redbox-labarchives/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/redbox-mint%2Fsails-hook-redbox-labarchives/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/redbox-mint%2Fsails-hook-redbox-labarchives/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/redbox-mint","download_url":"https://codeload.github.com/redbox-mint/sails-hook-redbox-labarchives/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/redbox-mint%2Fsails-hook-redbox-labarchives/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":273391909,"owners_count":25097254,"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","status":"online","status_checked_at":"2025-09-03T02:00:09.631Z","response_time":76,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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-30T09:17:17.009Z","updated_at":"2026-02-04T04:05:09.758Z","avatar_url":"https://github.com/redbox-mint.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"## A Sails Hook Redbox LabArchives\n\n\nThis Project is divided between folders\n\n## api\n\nMain API of your Hook can be stored in controllers and services\n\n- controllers\n- services\n  \n## config \u0026 form-config\n\nThis configurations are redbox-portal dependent. They will allow redbox to be available as a record\nIf you require to have a form in your portal\n\n- `config/recordtype`\n- `config/workflow`\n- `form-config/labarchives-1.0-draft`\n\n## index\n\nMain entry point for the hook\n\n### initialize\n\nInit code before it gets hooked. \n\n### routes\n\nController routes exposed to the sails front-end\n\n```javascript\n'get /your/route' : YourController.method\n```\n\n### configure\n\nAdd configuration and services to your sails app\n\n```javascript\nsails.services['YourService'] = function() { };\nsails.config = _.merge(sails.config, {object});\n```\n\n## test\n\nFirst run `npm install`\n\nTest your sails hook with mocha by running `npm test` before adding the hook to your redbox-portal. \nIt may cause your application to not lift.    \n\n```sh\n$ npm test\n\n\u003e @uts-eresearch/sails-hook-redbox-labarchives@1.0.0 test /Users/moises/source/code.research/sails-hook-redbox-labarchives\n\u003e NODE_ENV=test node_modules/.bin/mocha\n\n\n\n  Basic tests ::\n    ✓ should have a service\n    ✓ should have a form\n    ✓ should have a route\n    ✓ sails does not crash\n\n\n  4 passing (864ms)\n\n```\n\nFor more information on testing your hook go to : https://sailsjs.com/documentation/concepts/testing\n\n\n## Development in redbox-portal\n\nThere are several ways to code against the redbox-portal. One of it is to link the code via `npm link`\n\n*npm link this hook*\n\n```bash\ncd /into/where/hook/is/\nnpm link\n```\n\nnpm link into redbox-portal\n\n```bash\ncd /into/redbox-portal/\nnpm link sails-hook-redbox-labarchives\n```\n\n## Vagrant/Docker\n\nUsing docker while running redbox-portal is a posibility\n\nIn the `docker-compose.yml` file in redbox-portal verify that the service has the volume. \n\n```yml\n       - \"/opt/hooks:/opt/hooks\"\n```\n\nFor Vagrant to place the code inside of the same machine/docker. You can share it via the VagrantFile using sync_folder\n\n```yml\n  config.vm.synced_folder \"/Users/moises/source/qcif/sails-hook-redbox-labarchives\", \"/opt/hooks/sails-hook-redbox-labarchives\", id: \"labarchives\"\n```\n\nNow inside the docker instance of redbox-portal link the hook and your redbox-portal\n\n```bash\ndocker exec -it redbox-portal_redboxportal_1 /bin/bash\n```\n\nrun npm link in the hook folder\n\n```bash\ncd /opt/hooks/sails-hook-redbox-labarchives\nnpm link\n\n```\n\nnow link this alias in your redbox-portal\n\n```bash\ncd /opt/redbox-portal\nnpm link sails-hook-redbox-labarchives\n```\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fredbox-mint%2Fsails-hook-redbox-labarchives","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fredbox-mint%2Fsails-hook-redbox-labarchives","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fredbox-mint%2Fsails-hook-redbox-labarchives/lists"}