Coder Social home page Coder Social logo

matthewdg / calendar-hack Goto Github PK

View Code? Open in Web Editor NEW

This project forked from nanreh/calendar-hack

0.0 0.0 0.0 3.11 MB

Calendar Hack: a web application for runners who train for races.

Home Page: https://www.defy.org/hacks/calendarhack

License: MIT License

Shell 0.20% Python 1.04% TypeScript 95.35% CSS 1.66% HTML 1.75%

calendar-hack's Introduction

Calendar Hack Project Info

Calendar Hack is a web application for runners who train for races. It renders a training program on a calendar and provides some basic editing features. It also provides for downloading the result as an iCal file which can be imported into any calendar application worth using.

The project is hosted at defy.org/hacks/calendarhack

More project details are available on the About page

Contributing

If you have a bugfix, a new feature, a new training plan, a UX/UI fix, or other contribution, please send a PR. Feel free to create a GitHub issue if you want to call something out.

Plans

Training plans are represented as YAML files that are easy to create and edit. They can be found in plans/yaml. A JSON schema exists at public/schema/plan-schema.json

Running Locally

Calendar Hack is a React application. It was created using Create React App with the TypeScript template:

yarn create react-app ch-bootstrap --template typescript

So you can run locally with: yarn start

The other standard scripts exist also: yarn test, yard build, etc.

Validating Plans

The plan validator depends on ajv to validate against a JSON schema

Install ajv npm install -g ajv-cli

then

yarn run validatePlans

Converting new plans

If you are adding a plan, you should write it in YAML and then run ./bin/convertPlans to generate the JSON version for the application. The converter is written in python and requires pyyaml

virtualenv venv
source ./venv/bin/activate
python ./bin/convertPlans

calendar-hack's People

Contributors

nanreh avatar dependabot[bot] avatar leeweisberger avatar wholien avatar marknotfound avatar algentile avatar lostplan avatar sdotz avatar willhoyle avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.