{"id":19030354,"url":"https://github.com/chmouel/chmoufrack","last_synced_at":"2026-04-11T07:03:53.129Z","repository":{"id":66897089,"uuid":"70007062","full_name":"chmouel/chmoufrack","owner":"chmouel","description":"Generate intervals running plans for a group of different people with different max speed","archived":false,"fork":false,"pushed_at":"2019-03-12T11:39:15.000Z","size":845,"stargazers_count":2,"open_issues_count":0,"forks_count":1,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-01-02T03:44:42.043Z","etag":null,"topics":["angularjs","fitness","golang","javascript","rest-api","yaml"],"latest_commit_sha":null,"homepage":null,"language":"Go","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/chmouel.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":"2016-10-04T21:16:13.000Z","updated_at":"2019-10-16T02:47:04.000Z","dependencies_parsed_at":"2023-02-22T11:15:53.196Z","dependency_job_id":null,"html_url":"https://github.com/chmouel/chmoufrack","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/chmouel%2Fchmoufrack","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/chmouel%2Fchmoufrack/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/chmouel%2Fchmoufrack/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/chmouel%2Fchmoufrack/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/chmouel","download_url":"https://codeload.github.com/chmouel/chmoufrack/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":240079638,"owners_count":19744725,"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":["angularjs","fitness","golang","javascript","rest-api","yaml"],"created_at":"2024-11-08T21:17:41.264Z","updated_at":"2026-04-11T07:03:53.088Z","avatar_url":"https://github.com/chmouel.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"ChmouFrack\n==========\n[![Build Status][travis-badge]][travis] [![Coverage Status][coveralls-badge]][coveralls] [![Go Report][goreport-badge]][goreport]\n\nA running interval training generated for different vVO2max (or MAS).\n\nSee informatbout about your MAS [here](http://www.scienceforsport.com/maximal-aerobic-speed-mas/) and a tool to calculate it [here](https://www.2peak.com/tools/mas.php)\n\nThe website in action is located here :\n\nhttps://frack.chmouel.com\n\n[travis]: \u003chttps://travis-ci.org/chmouel/chmoufrack\u003e\n[travis-badge]: \u003chttps://travis-ci.org/chmouel/chmoufrack.svg?branch=master\u003e\n[goreport]: \u003chttps://goreportcard.com/report/github.com/chmouel/chmoufrack\u003e\n[goreport-badge]: \u003chttps://goreportcard.com/badge/github.com/chmouel/chmoufrack\u003e\n[coveralls]: \u003chttps://coveralls.io/r/chmouel/chmoufrack?branch=master\u003e\n[coveralls-badge]: \u003chttps://coveralls.io/repos/chmouel/chmoufrack/badge.svg?branch=master\u003e\n\n## REST Server\n\nTo install the REST Server you simply need to :\n\n```shell\ngo get -u github.com/chmouel/chmoufrack\n```\n\nThe REST server is a GO service connected to a MySQL database, see the file [etc/systemd.service](etc/systemd.service) for an example of how to run it. Make sure to adjust the path to where is your GOLANG path (in the example it's located in /usr/local/go/src\n\nThe database would be automatically propogated.\n\nSome REST resources like POST/DELETE needs to have a facebook token to make sure we delete only the one we have created.\n\n## Client\n\nThe client is an AngularJS webpage. You can serve it directly from your web server (recommended) or let the REST server doing it.\n\nFor example here is a Nginx snippet that pass all /v1 path to the rest server and the serve directly the HTML files :\n\n```\n    location /v1 {\n        root /usr/local/go/src/github.com/chmouel/chmoufrack/client\n        index index.html index.htm;\n\n        proxy_read_timeout    90;\n        proxy_connect_timeout 90;\n        proxy_redirect        off;\n\n        proxy_set_header      X-Real-IP $remote_addr;\n        proxy_set_header      X-Forwarded-For $proxy_add_x_forwarded_for;\n        proxy_set_header      X-Forwarded-Proto https;\n        proxy_set_header      X-Forwarded-Port 443;\n        proxy_set_header      Host $host;\n\n        proxy_pass http://localhost:9091/v1;\n    }\n\n\n    location / {\n        root /usr/local/go/src/github.com/chmouel/chmoufrack/client;\n        index index.html index.htm;\n    }\n```\n\nThis is assuming you are running the server on 9091 like in the [etc/systemd.service](etc/systemd.service) example.\n\nYou need to adjust the [config.js](client/js/config.js) file to your facebook application ID.\n\nIf you want to add a Program you need to be logged to Facebook and then you can click on the Menu to \"add a program\"\n\n\n## Build\n\n``frack`` use [https://github.com/Masterminds/glide](glide) for dependency management. After installing glide (see README) just issue this to build chmoufrack :\n\n```\nglide up\ngo build -o chmoufrack -v github.com/chmouel/chmoufrack/server/cli\n```\n\nTo run the test you need to have a MySQL DB access specified in the environment variable `FRACK_TEST_DB`. You can setup access via the .my.cnf mechanism\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fchmouel%2Fchmoufrack","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fchmouel%2Fchmoufrack","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fchmouel%2Fchmoufrack/lists"}