Git Product home page Git Product logo

vrturo / b.a.c.e. Goto Github PK

View Code? Open in Web Editor NEW
1.0 2.0 0.0 10.66 MB

B.A.C.E.(Blood Alcohol Content Estimator) is a web app that is used to let users know an ESTIMATE of what their BAC(blood alcohol content) would be, based on an algorithm that takes the amount of fluid ozs of alcohol they've had, their weight, their gender, and the amount of time they've been drinking.

Home Page: https://bacestimator.herokuapp.com

License: MIT License

Ruby 0.45% HTML 0.62% JavaScript 53.22% CSS 45.71%

b.a.c.e.'s Introduction

B.A.C.E.(Blood Alcohol Content Estimator)

B.A.C.E.(Blood Alcohol Content Estimator) is a web app that uses Uber's API to create an account or log in, and is used to let users know an estimate of what their BAC(blood alcohol content) would be based on an algorithm that takes the amount of fluid ozs of alcohol they've had, their weight, their gender, and the amount of time they've been drinking. If their BAC is too high it recommends they order an Uber ride and get home safely.

NOTE: You can not order a ride home from the app. I set up a mock scenario on what the app would run like but ordering a ride through someone's app took extra permission from Uber that I didnt apply for.

Link to app:

https://bacestimator.herokuapp.com

Technical Stack


Front End

For the front end I used a Front End framework called Semantic. It helped with positioning and styling of forms and thats about it. I used HTML/CSS to do all other styling and used Javascript to render DOM events like the rendering of the Google Map and Chart.

Back End

This web app was made with Sinatra. I used the user controller to help the logic of signing up and logging in existing users, and the user model to store the user's information. I used the calculation model to store the algorithm that takes the user parameters and does the calculation, and the calculate controller to make sure all the params are valid and passes the calculate logic to the view. I used three different API's to put this together. I used Uber's API to let a user create an account or sign in if they had an existing one. I used the Chart.Js API to let a user see how high their BAC is compared to the legal limit, if over it recommends they take an Uber ride home from where they are at. And I also used Google Maps API to sharea users location and recommend they'd take an uber to get home.

Future Additions


This is definitely a fun project I worked on for a bit. If I had more time or if I did it over I'd use a bigger framework liek rails. My idea started small and kept getting bigger and with additional features a biger framework like rails would be ideal.

Also I used Uber's API to let a user log in but I would've liked it if I could let a user order a ride through the app. That took extra permissions from Uber that I didnt ask for.

b.a.c.e.'s People

Contributors

vrturo avatar amgando avatar

Stargazers

 avatar

Watchers

James Cloos avatar  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.