{"id":22887570,"url":"https://github.com/cwithmichael/what-can-u-eat","last_synced_at":"2026-05-17T17:05:03.071Z","repository":{"id":266781362,"uuid":"899338876","full_name":"cwithmichael/what-can-u-eat","owner":"cwithmichael","description":"Toy project using USDA API, clojure, kit-clj, UIx and aws cdk","archived":false,"fork":false,"pushed_at":"2024-12-08T22:34:33.000Z","size":4514,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-03-31T19:14:03.484Z","etag":null,"topics":["aws","aws-cdk","aws-cdk-typescript","clojure","kit-clj","uix","usda-national-nutrient-database"],"latest_commit_sha":null,"homepage":"","language":"Clojure","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/cwithmichael.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2024-12-06T04:14:44.000Z","updated_at":"2024-12-08T21:19:33.000Z","dependencies_parsed_at":"2025-02-06T23:38:04.499Z","dependency_job_id":null,"html_url":"https://github.com/cwithmichael/what-can-u-eat","commit_stats":null,"previous_names":["cwithmichael/what-can-u-eat"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/cwithmichael/what-can-u-eat","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cwithmichael%2Fwhat-can-u-eat","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cwithmichael%2Fwhat-can-u-eat/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cwithmichael%2Fwhat-can-u-eat/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cwithmichael%2Fwhat-can-u-eat/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/cwithmichael","download_url":"https://codeload.github.com/cwithmichael/what-can-u-eat/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cwithmichael%2Fwhat-can-u-eat/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":264502387,"owners_count":23618587,"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":["aws","aws-cdk","aws-cdk-typescript","clojure","kit-clj","uix","usda-national-nutrient-database"],"created_at":"2024-12-13T20:36:23.252Z","updated_at":"2026-05-17T17:04:58.025Z","avatar_url":"https://github.com/cwithmichael.png","language":"Clojure","funding_links":[],"categories":[],"sub_categories":[],"readme":"# what-can-u-eat\n\n## Requirements\n\nIn order to use the USDA API you need a key.\nYou can request one from their website: https://fdc.nal.usda.gov/api-key-signup\n\nOnce you have the key you'll need to create a `secrets.edn` file in the resources directory next to the `system.edn` file.\nThe contents of that file should look like:\n\n`{:usda-api-key \"\u003cyour api key\u003e\"}`\n\n## Run the app\n\nStart a [REPL](#repls) in your editor or terminal of choice.\n\n`clj -M:dev`\n\nStart the server with:\n\n```clojure\n(go)\n```\n\nStart the ui in a seprate term with:\n\n```\nnpm install\nnpx shadow-cljs watch app\n```\n\nThe UI is available at http://localhost:3000\nThe default API is available under http://localhost:3000/api\n\nSystem configuration is available under `resources/system.edn`.\n\nTo reload changes:\n\n```clojure\n(reset)\n```\n\n## TODO\n\n- [ ] Add data validation with something like Malli\n- [ ] Allow the user to select ranges themselves for the nurition limits\n- [ ] Allow the user to select a food item from a list of options as they type\n- [ ] More tests\n- [ ] Improve the UI\n\n## REPLs\n\n### Cursive\n\nConfigure a [REPL following the Cursive documentation](https://cursive-ide.com/userguide/repl.html). Using the default \"Run with IntelliJ project classpath\" option will let you select an alias from the [\"Clojure deps\" aliases selection](https://cursive-ide.com/userguide/deps.html#refreshing-deps-dependencies).\n\n### CIDER\n\nUse the `cider` alias for CIDER nREPL support (run `clj -M:dev:cider`). See the [CIDER docs](https://docs.cider.mx/cider/basics/up_and_running.html) for more help.\n\nNote that this alias runs nREPL during development. To run nREPL in production (typically when the system starts), use the kit-nrepl library through the +nrepl profile as described in [the documentation](https://kit-clj.github.io/docs/profiles.html#profiles).\n\n### Command Line\n\nRun `clj -M:dev:nrepl` or `make repl`.\n\nNote that, just like with [CIDER](#cider), this alias runs nREPL during development. To run nREPL in production (typically when the system starts), use the kit-nrepl library through the +nrepl profile as described in [the documentation](https://kit-clj.github.io/docs/profiles.html#profiles).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcwithmichael%2Fwhat-can-u-eat","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcwithmichael%2Fwhat-can-u-eat","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcwithmichael%2Fwhat-can-u-eat/lists"}