{"id":16592708,"url":"https://github.com/prikhi/bodyweight-server","last_synced_at":"2025-10-29T10:30:42.016Z","repository":{"id":80049219,"uuid":"55448826","full_name":"prikhi/bodyweight-server","owner":"prikhi","description":"A Haskell REST Server for a BodyWeight Workout Log Application.","archived":false,"fork":false,"pushed_at":"2017-08-02T15:56:16.000Z","size":66,"stargazers_count":5,"open_issues_count":0,"forks_count":0,"subscribers_count":4,"default_branch":"master","last_synced_at":"2025-02-02T01:02:07.179Z","etag":null,"topics":["bodyweight","haskell","routines"],"latest_commit_sha":null,"homepage":null,"language":"Haskell","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/prikhi.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.txt","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":"2016-04-04T22:06:23.000Z","updated_at":"2020-02-21T09:26:28.000Z","dependencies_parsed_at":null,"dependency_job_id":"8e55949c-814f-45fd-a9f1-d3cfae051902","html_url":"https://github.com/prikhi/bodyweight-server","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/prikhi%2Fbodyweight-server","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/prikhi%2Fbodyweight-server/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/prikhi%2Fbodyweight-server/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/prikhi%2Fbodyweight-server/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/prikhi","download_url":"https://codeload.github.com/prikhi/bodyweight-server/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":238803537,"owners_count":19533334,"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":["bodyweight","haskell","routines"],"created_at":"2024-10-11T23:22:00.596Z","updated_at":"2025-10-29T10:30:36.720Z","avatar_url":"https://github.com/prikhi.png","language":"Haskell","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Bodyweight Logger Server\n\nA Bodyweight Workout Logging REST server written in Haskell.\n\nRight now this is pretty much a minimal REST API wrapper around a postgresql\ndatabase.\n\nCRUD operations on the following resources are exposed:\n\n* Exercises\n* Routines\n* Sections/SectionExercises\n* Subscriptions\n* Users\n* Routine Logs\n\n## Setup\n\n```\npacman -S stack\nmake\n```\n\n## TODO\n\n* Documentation\n    * Add expected Environmental Variables to README\n    * Document Typeclasses \u0026 instance implementations in Models module\n    * Add API Docs using servant-doc\n* User Auth\n    * Add User/Subscriber field to RoutineLogs\n\n## Code Style\n\nLoosely based off of Elm's style guide \u0026 `elm-format`, the goal is to minimize\nnoise in commit diffs.\n\nTry not to go too far over a line width of 80 characters.\n\n**Let/In/Where**\n\nUse let/in for values \u0026 where for functions:\n\n```\nsomeFunc someArg =\n    let\n        someVar =\n            someExpr 2 3 4\n    in\n        return $ wrap someVar\n    where wrap =\n            Var\n\nsomeFunc someArg =\n    extrapolate 2 3 4 someArg\n    where extrapolate =\n            anotherFunc 2 4\n```\n\n**Multiline Lists/Tuples**\n\n```\n[ firstElem\n, secondElem\n, thirdElem\n]\n```\n\n**Multiline Type Definitions**\n\n```\nsomeFunction :: (ShortTypeclass a) =\u003e a -\u003e a\n\nsomeFunction :: ( TypeclassOne a b c, AVeryLongTypeclassNameSoWeCanShowWrapping a\n                , TypeclassThree c )\n             =\u003e a -\u003e b -\u003e c\n\nsomeFunction :: SomeReallyLongFunctionArguement\n             -\u003e AndAnotherReallyLongOneSoWeCantFitItAllInALine\n             -\u003e Int\n```\n\n**Function Definitions**\n\n```\nsomeFunction arg1 arg2 arg3 =\n    someExpr arg2 arg3 $ otherExpr arg1\n\n\nsomeFunction someArg monadicFunction = do\n    someResult \u003c- monadicFunction\n    handleResult someArg someResult\n\nsomeFunction someArg =\n    aMultilineFunctionCall withLots ofArguments thatWont fitIn\n        aSingleLine\n```\n\n**Imports**\n\nProper order is explicit imports, qualified imports, application imports.\nAlignment doesn't really matter, but we might automate it using\nstylish-haskell in the future.\n\n```\nmodule MyModule where\n\nimport Data.Maybe (isJust, isNothing)\nimport Servant (err401)\n\nimport qualified Data.Text as T\n\nimport Models\nimport Types\n```\n\n\n## License\n\nGPL-3.0\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fprikhi%2Fbodyweight-server","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fprikhi%2Fbodyweight-server","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fprikhi%2Fbodyweight-server/lists"}