workout-tracker
Version:
A set of JSON schemas for workouts
29 lines (22 loc) • 1.44 kB
Markdown
[](https://nodei.co/npm/workout-tracker/)
[](https://travis-ci.org/khaliqgant/workout-tracker)
[](https://www.npmjs.com/package/workout-tracker)
# Workout Tracker
> A collection of workout schemas. Allows you to track predefined workouts progress.
## Example
* Can be seen [here](http://khaliqgant.github.io/workout-tracker/)
## Development Proof Of Concept
* A development simple example can be seen in the `index.html`` file and the javascript
in `scripts/workout.js`
* Start up a simple webserver using `npm run dev` which calls `python -m SimpleHTTPServer 8000`
* The workout that gets loaded in depends on the query string appended to the URL.
For example `localhost:8000/?workout=upper_body_push` will load that schema
and allow you to enter in data and when hitting submit, the JSON dump will be
outputted to the console.
## Development
* Any JSON schema workouts are encouraged via pull requests!
* Add a schema to the schema directory and ensure it is valid by running `make test`
from the root.
## References
* [Check Data Against Registered schema](http://jsonschemalint.com/draft4/#)
* [JSON Schema Reference](http://spacetelescope.github.io/understanding-json-schema)