{"id":20279901,"url":"https://github.com/goodmeasuresllc/bodytrace-testing","last_synced_at":"2025-06-11T23:32:37.116Z","repository":{"id":147420751,"uuid":"282245242","full_name":"GoodMeasuresLLC/bodytrace-testing","owner":"GoodMeasuresLLC","description":"A rails/vue application for testing Bodytrace requests at Goodmeasures","archived":false,"fork":false,"pushed_at":"2021-03-30T20:17:34.000Z","size":265,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"master","last_synced_at":"2025-03-22T15:49:29.393Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Ruby","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/GoodMeasuresLLC.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}},"created_at":"2020-07-24T14:48:28.000Z","updated_at":"2021-03-30T20:17:36.000Z","dependencies_parsed_at":"2023-06-13T11:15:16.455Z","dependency_job_id":null,"html_url":"https://github.com/GoodMeasuresLLC/bodytrace-testing","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/GoodMeasuresLLC/bodytrace-testing","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/GoodMeasuresLLC%2Fbodytrace-testing","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/GoodMeasuresLLC%2Fbodytrace-testing/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/GoodMeasuresLLC%2Fbodytrace-testing/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/GoodMeasuresLLC%2Fbodytrace-testing/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/GoodMeasuresLLC","download_url":"https://codeload.github.com/GoodMeasuresLLC/bodytrace-testing/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/GoodMeasuresLLC%2Fbodytrace-testing/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":259363210,"owners_count":22846211,"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-14T13:33:37.972Z","updated_at":"2025-06-11T23:32:36.749Z","avatar_url":"https://github.com/GoodMeasuresLLC.png","language":"Ruby","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Bodytrace Test App\n\n## CODE Application:\n\nconfig/bodytrace.yml\n* Has post URL for ordering\n* Has Kit Identifier for scale\n* Has Kit Identifier for bp_cuff\n\nBodytrace_request.rb makes an order\nmodels/bodytrace/request.rb\n* Does a post to the fulfillment_url for a new order\n\nIn config/bodytrace.yml:\n```\n    staging: \u0026staging\n     \u003c\u003c: *defaults\n      fulfillment_link: 'https://device-testing.herokuapp.com/api/orders'\n      kit_id: 97dd7c56-5b44-11e4-9f3a-bc764e04e32e\n      bp_cuff_kit_id: 2a72cb22-bf8d-11ea-9506-aa0000d39f2e\n```\n\nStaging is pre-configured to point to this test app for all bodytrace requests\n\n\nWhat does the service send back:\n* Bodytrace::OrdersController specifies what we expect when we order a scale\n* Bodytrace::Request specifies more exactly what the post action is for ordering the scale/bp-cuff\n* Bodytrace::MeasurementsController what happens when a member usings a scale\n\n## Flow is:\n\n* Test service receives order requests, creates an Scale or BpCuff\n* Test service lists all devices and status: new, shipping. Ready.\n* New devices can be shipped and become shipping\n* Shipping Devices get delivered and become Ready\n* Ready devices can have a reading entered.\n\nWhen new devices are shipped, they post to our Bodytrace::OrdersController\nNew readings post to our Bodytrace::MeasurementsController\n\n\n## To Run:\n\n* Initialize your database by running `rake db:create`\n* Run `bundle install`\n* Run `yarn install`\n* Run `rails server`\n* In a new tab, run `yarn run dev`\n\n## Production:\nTest app http://device-testing.herokuapp.com/orders\nCode for test app: https://github.com/GoodMeasuresLLC/bodytrace-testing\nDeploy via heroku, I think the standard setup guide is:\nhttps://devcenter.heroku.com/articles/getting-started-with-rails5#deploy-your-application-to-heroku\nThis should be deployed to Rob’s heroku account (or Good Measures? I can’t remember which)\nThe github repo is already linked with heroku such that if heroku is authenticated in the CLI, `git push heroku master` should deploy the app\n\n## How it works:\n\nThe app has two pages: Orders, and Devices\n\n  Orders show order requests, you can imitate Bodytrace’s response that it has shipped by clicking “ship” and then, after, imitate the delivery by clicking “deliver”\n\n  Shipped and Delivered devices will appear on the Devices page, and from there you can enter readings for the device which imitates the data sent to us from bodytrace when a user takes a reading\n\nIf the list gets too long and confusing, just nuke the heroku app’s DB, via\n\n```\n  heroku run --app device-testing rake db:drop db:create db:migrate\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgoodmeasuresllc%2Fbodytrace-testing","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fgoodmeasuresllc%2Fbodytrace-testing","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgoodmeasuresllc%2Fbodytrace-testing/lists"}