{"id":21625243,"url":"https://github.com/ohcnetwork/02-journal","last_synced_at":"2026-04-11T14:02:34.486Z","repository":{"id":40011213,"uuid":"367518688","full_name":"ohcnetwork/02-journal","owner":"ohcnetwork","description":"Track movement of Oxygen cylinders","archived":false,"fork":false,"pushed_at":"2023-01-19T21:39:55.000Z","size":2639,"stargazers_count":1,"open_issues_count":27,"forks_count":1,"subscribers_count":4,"default_branch":"develop","last_synced_at":"2025-03-10T23:16:22.000Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"CSS","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/ohcnetwork.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2021-05-15T01:54:08.000Z","updated_at":"2021-06-06T05:00:34.000Z","dependencies_parsed_at":"2023-02-06T08:30:37.256Z","dependency_job_id":null,"html_url":"https://github.com/ohcnetwork/02-journal","commit_stats":null,"previous_names":["ohcnetwork/02-journal"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ohcnetwork%2F02-journal","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ohcnetwork%2F02-journal/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ohcnetwork%2F02-journal/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ohcnetwork%2F02-journal/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ohcnetwork","download_url":"https://codeload.github.com/ohcnetwork/02-journal/tar.gz/refs/heads/develop","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243940108,"owners_count":20372045,"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-25T01:08:31.569Z","updated_at":"2025-12-30T21:07:27.440Z","avatar_url":"https://github.com/ohcnetwork.png","language":"CSS","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Coronasafe O2 Journal\nA fork of [Coronasafe Journal](https://github.com/coronasafe/journal) project.\n\nTrack movement of Oxygen cylinders. ([Workflow](https://github.com/coronasafe/02-journal/discussions/19))\n\nBuild with Rails and React ❤️\n\n### Requirements\n\n\u003cdetails\u003e\n  \u003csummary\u003eRuby 2.7\u003c/summary\u003e\n  We recommend a managing tool like \u003ca href=\"https://github.com/rbenv/rbenv\"\u003erbenv\u003c/a\u003e to install Ruby. After installing `rbenv`, you can run `rbenv install` from this repository root to install compatible ruby version.\n\u003c/details\u003e\n\n\u003cdetails\u003e\n  \u003csummary\u003eForeman\u003c/summary\u003e\n  Foreman is a task runner used in the Ruby ecosystem. After installing Ruby you can install it with `gem install foreman`\n\u003c/details\u003e\n\n\u003cdetails\u003e\n  \u003csummary\u003ePostgreSQL\u003c/summary\u003e\n  We use PostgreSQL for the database. Checkout \u003cpre\u003econfig/database.yml.postgresql\u003c/pre\u003e for default keys in use. \n  If you are on Mac, you can install Postgres with `brew install postgres`\n\u003c/details\u003e\n\n\u003cdetails\u003e\n  \u003csummary\u003eNodeJS\u003c/summary\u003e\n  We recommend using a version manager such as \u003ca href=\"https://github.com/nvm-sh/nvm\"\u003eNVM\u003c/a\u003e. After install NVM, you can use any Node version higher than 12 to run the application. \n  \u003cpre\u003envm install 12\u003c/pre\u003e\n\u003c/details\u003e\n\n### Setup\n\n```bash\n./bin/setup\n```\n\n### Dev server\n\n```\nforeman start -f Procfile.dev\n```\n\n### Running Tests\n\nAPI endpoints have test coverage.\n\n`bundle exec rake test` will run the test suite.\n\n### Containerization\n\nBuild image\n\n1. Clone the repo.\n1. Setup `config/master.key`.\n1. `docker-compose build`.\n\nRun\n\n1. Setup env variables. (list in `config/docker-compose.yml`)\n2. `docker-compose run web rake db:migrate`.\n3. `docker-compose up`.\n4. React app will be compiled at `public/packs`.\n\nVideo: [https://share.getcloudapp.com/Blu50Kl4](https://share.getcloudapp.com/Blu50Kl4)\n\n### API Documentation\n\n[https://github.com/coronasafe/journal/blob/develop/doc/api.md](https://github.com/coronasafe/journal/blob/develop/doc/api.md)\n\n### Quick demo of how to use the basic APIs\n\n1. [User Login](https://share.getcloudapp.com/8Lu7O4AR)\n2. [Visits](https://share.getcloudapp.com/DOuA0W0Y)\n3. [Admin](https://share.getcloudapp.com/geuwNk9P)\n\n### Instructions for deployment\n\n1. Run `rake db:seed`. \n2. Setup environment variables `ADMIN_LOGIN` \u0026\u0026 `ADMIN_PASSWORD`.\n3. Schedule `CleanupOldDataJob.perform_now` to be run once every day, probably midnight.\n4. Setup the OTP service AppKey as an environment variable `SMS_API_KEY`\n5. Setup environment variable `RAILS_SERVE_STATIC_FILES` = `true`\n\n## Contributing\n\nCheckout the [issues](https://github.com/coronasafe/journal/issues) page. When you find one to your skill liking and skill level, please leave us a comment that you are taking it up. \n\nIf you are new to open source, checkout [Open Source Guide](https://opensource.guide/how-to-contribute/)\n\nYou can contact us through issues or find us on Slack.\n\n\u003ca href=\"http://slack.coronasafe.in/\"\u003e\n  \u003cimg src=\"https://i.imgur.com/V7jxjak.png\"\u003e\n\u003c/a\u003e\n\n## License\n\nThis project is [MIT](https://github.com/coronasafe/journal/blob/master/LICENSE) licensed.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fohcnetwork%2F02-journal","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fohcnetwork%2F02-journal","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fohcnetwork%2F02-journal/lists"}