{"id":21405403,"url":"https://github.com/karimsa/caltracker","last_synced_at":"2025-03-16T16:51:10.355Z","repository":{"id":149730967,"uuid":"207049499","full_name":"karimsa/caltracker","owner":"karimsa","description":"Calorie tracking application - built for an interview.","archived":false,"fork":false,"pushed_at":"2019-09-12T04:31:39.000Z","size":243,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-03-11T21:03:58.011Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"JavaScript","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/karimsa.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":"2019-09-08T02:12:18.000Z","updated_at":"2019-10-02T05:53:19.000Z","dependencies_parsed_at":null,"dependency_job_id":"6f3f0034-f7ea-4c7f-bbab-9a46cee639bf","html_url":"https://github.com/karimsa/caltracker","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/karimsa%2Fcaltracker","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/karimsa%2Fcaltracker/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/karimsa%2Fcaltracker/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/karimsa%2Fcaltracker/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/karimsa","download_url":"https://codeload.github.com/karimsa/caltracker/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243902293,"owners_count":20366259,"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-22T16:25:13.773Z","updated_at":"2025-03-16T16:51:10.332Z","avatar_url":"https://github.com/karimsa.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# CalTracker\n\nWeb application to assist with calorie tracking.\n\n## Setting up for development\n\n 1. Clone the repo locally (let's say into `caltracker`).\n 2. `cd caltracker \u0026\u0026 npx @karimsa/mono`\n 3. Start dev server for web: `cd caltracker/packages/web \u0026\u0026 npm start`\n 4. Start dev server for api: `cd caltracker/packages/api \u0026\u0026 npm start` (will use default env from `.env`)\n\n## Deployment considerations\n\nThere is no other environment other than `local` configured for web yet, but can be done so by editing `packages/web/src/models/axios.js`. The publicly accessible domain name would need to be known for this. Toggling between environments is handled by the `ENV_TARGET` environment variable, which is currently always set to the value `local`.\n\n## Running tests\n\nTo run integration tests for the API, simply run `npm test` in `packages/api`. Again, all environment bits are loaded from `.env` and the code has other defaults it applies for test environments.\n\nTo run E2E tests, run `npm test` in the project root. This will start the API server, the web server, and run tests with Cypress. To develop E2E tests, run `npm run cy:open` instead - it will open cypress in open mode and run the same api \u0026 web servers.\n\n## Considerations\n\n 1. **Timezones:** Currently, the application assumes that the backend \u0026 frontend are operating under the same timezone and therefore have the same concept of a 'day'. One simple way to fix this assumption would be to introduce a second user setting for timezone, which would allow the user to specify their own timezone and the backend to utilize this when making daily calorie calculations.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkarimsa%2Fcaltracker","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fkarimsa%2Fcaltracker","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkarimsa%2Fcaltracker/lists"}