Giter VIP home page Giter VIP logo

brevet-calculator's Introduction

Project 6: Brevet time calculator service

Simple listing service from project 5 stored in MongoDB database.

Author: Justin Spidell

Contact: [email protected]

What is in this repository

flask_brevets: The backend logic for the app acp_times.py: Logic for calculating the open and close times config.py: Configurations for the app calc.html: The html for the main page display.html: The html for the display page index.php: The php for api page docker-compose.yml: Build the whole project

How to Use

Run 'bash run.sh' in a terminal from /DockerRestApi. Go to http://localhost:5001/ then to http://localhost:5000/ from any browser.

Tests / Errors

The page will automaticly clear your entry if you do not enter a number into miles or km. It will display an error if you submit an empty form. Likewise it will display an error if you try to display entries before you submit. The program is designed to ignore any field in the form that does not have any entries. The Page will 404 if you try to go to any page that does not exsist.

Brevet Calculations

Using the table found at https://rusa.org/pages/acp-brevet-control-times-calculator:

Opening times are calculated by dividing the control location by the coorisponding maximum speed. For every following control location, divide the distance from the previous control location by the maximum speed that coorisponds to the current running total.

Closing times are calculated by dividing the control location by the coorisponding minmum speed. For every following control location, divide the distance from the previous control location by the minmum speed that coorisponds to the current running total.

brevet-calculator's People

Contributors

uocis322 avatar

Watchers

Justin Spidell 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.