{"id":20144260,"url":"https://github.com/made2591/gym-workout","last_synced_at":"2026-04-13T06:33:23.905Z","repository":{"id":71122909,"uuid":"96941475","full_name":"made2591/gym-workout","owner":"made2591","description":"Vagrant machine with silex + propel + materialize web app for the management of gym workouts.","archived":false,"fork":false,"pushed_at":"2017-07-14T20:47:22.000Z","size":5423,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-01-13T10:50:14.432Z","etag":null,"topics":["apache2","database","gym","gym-workouts","material-design-lite","mysql","propel","silex","twig","vagrant","vagrant-boxes","vagrant-environments","vagrant-machine","vagrant-provisioner","webapp","workouts"],"latest_commit_sha":null,"homepage":null,"language":"PHP","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/made2591.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":"2017-07-11T22:11:13.000Z","updated_at":"2017-07-19T07:28:17.000Z","dependencies_parsed_at":"2023-02-22T09:16:18.061Z","dependency_job_id":null,"html_url":"https://github.com/made2591/gym-workout","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/made2591%2Fgym-workout","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/made2591%2Fgym-workout/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/made2591%2Fgym-workout/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/made2591%2Fgym-workout/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/made2591","download_url":"https://codeload.github.com/made2591/gym-workout/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":241587914,"owners_count":19986627,"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":["apache2","database","gym","gym-workouts","material-design-lite","mysql","propel","silex","twig","vagrant","vagrant-boxes","vagrant-environments","vagrant-machine","vagrant-provisioner","webapp","workouts"],"created_at":"2024-11-13T22:09:25.295Z","updated_at":"2026-04-13T06:33:18.874Z","avatar_url":"https://github.com/made2591.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Gym Organizer\n\nVagrant machine with silex + propel + materialize web app for the creation and management of gym workouts. The entire application is in italian - sorry dudes, I was newbie when I first wrote this app :-P\n\nSimple Vagrant box including\n* apache2\n* php (including Xdebug)\n* mysql\n* gym - a [silex](http://silex.sensiolabs.org/) project\n\nProject Structure\n-------------------\n* configure your silex app: **src/app.php**\n* add further pages: **src/controllers.php**\n* set up your database: **sql/datadefinition.sql**\n* prefill your database: **sql/datamanipulation.sql**\n* add twig templates: **web/templates/**\n\n## Quick Start\n\nFirst, make sure your development machine has [VirtualBox](https://www.virtualbox.org/) installed. After this, [download and install the appropriate Vagrant package for your OS](https://www.vagrantup.com/downloads.html). \nTo setup a vagrant box, clone or download this repository and run vagrant up:\n\n\tgit clone https://github.com/made2591/gym\n\tcd gym\n    vagrant up\n\n__Note__: the above `vagrant up` command will also trigger Vagrant to download the `trusty32` box via the URL specified in Vagrant file. Vagrant only does this, if it detects that the box doesn't already exist on your system (for instance, the first time). After this, you can login in Vagrant machine using `ssh`:\n\n\tvagrant ssh\n\nThe first time you run the application you need to create the DB for the very first time. To do that,\n\n- Log-in mysql - using command line type `mysql -u root -p root` - and return. Then you will be asked the root password. If you don't know it, just search on Google how to setup the password (see note for suggestion);\n- When you correctly logged in mysql type `CREATE DATABASE gym` in command line and return;\n- Type exit;\n\n__Note__: in my experience, if something's wrong with a fresh mysql setup, you can easly fix the it by purging the entire mysql-server package using `sudo apt-get purge mysql-*` and re-install it with `sudo apt-get purge mysql-*`\n\nThe entire application is under `/var/www/` folder: to see silex and propel files go to that folder:\n\n\tcd /var/www\n\nThe application should be already able to respond at:\n\n\thttp://localhost:8001\n\n__Note__: I wrote a route - under `/fixture` - that you can find in the controller: it provides a quick way to load lot of example exercises and a bunch of workouts (always in italian, sorry XD). \n\n\thttp://localhost:8001/fixture\n\nYou can use `reload_db.sh` shell script to drop and rebuild databases\n\n\n## How do I use it?\n\n### Homepage\n\nThe homepage is reachable pointing to root app url and looks like this:\n\u003c!--![Homepage](https://raw.githubusercontent.com/made2591/gym/master/images/homepage.png?raw=true)--\u003e\n![Homepage](./images/homepage.png)\n\nThe page is divided in four section. In order from left to right:\n\n- The first card (link in the title) let you insert a new exercise;\n- The second card will let you insert a new muscle group;\n- The third card will let you insert a new workout;\n- The fourth card will let you create a random workout (eventually using some tuning parameters);\n\n### Create a new workout\n\n#### Insert a new line in workout\n\nThe exercise insertion page looks like this:\n\u003c!--![Insert an exercise](https://raw.githubusercontent.com/made2591/gym/master/images/insert_exercise.png?raw=true)--\u003e\n![Insert an exercise](./images/insert_exercise.png)\n\nWhen you filled all required fields, you can click in the middle button to temporarily add exercise to workout table. You can drag and drop element in the table and change order before saving workout (right button).\n\n__Note__: in this page and many others, if you first run the `/fitxure`, you can correctly choose bewtween several different muscle group and setup difficulty and type of series (pyramidal series, super series).\n\n#### Create a new exercise\n\nThe exercise insertion modal is available clicking on first button from left in insert exercise page:\n\u003c!--![Insert an exercise](https://raw.githubusercontent.com/made2591/gym/master/images/insert_new.png?raw=true)--\u003e\n![Insert an exercise](./images/insert_new.png)\n\nA modal appears and let you:\n\n- Define the name of exercise;\n- Choose which kind of muscles are involved in exercise;\n\n#### Workout view\n\nFinally, the workout view let you see the workout you defined before:\n\u003c!--![Insert an exercise](https://raw.githubusercontent.com/made2591/gym/master/images/insert_exercise.png?raw=true)--\u003e\n![Insert an exercise](./images/schedule_view.png)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmade2591%2Fgym-workout","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmade2591%2Fgym-workout","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmade2591%2Fgym-workout/lists"}