Coder Social home page Coder Social logo

kog-locker's Introduction

Kog Locker

This is an app using the Strava Api to 'gamify' cycling by having tokens that an individual can unlock after reaching certain levels i.e. miles, power targets, elevation, distance and set personal targets on segments of trail or road.

I have an node/express backend handling the oAuth and allowing users to login. After allowing my app to use their data users are able to see their personal stats, their collected tokens, and a target segment. At the bottom I have implemented a lazy-load image gallery to allow users to see their most memorable moments from activities.

Users have the ability to set a 'target' segment that defaults to giving them a 3% increase in time goal, however the user can adjust this however they want to. The users have the ability to update the target segment. I wasn't sure how to set the default target segment so I set it to one my personal favorite climbs in Colorado.

I built this app using React/Router and Redux.

Run This Project

Front-End

  • Clone down the project into a folder
  • run npm install
  • Apply and receive an api key from google
  • create a file in the src directory, name it apiKey.js
  • In that file add in export const gKey = "yourGoogleApiKeyHere";
  • Run npm start and visit localhost:3000

Back-End

  • Clone down into the root project directory the strava api proxy from https://github.com/JamesRandall/StravaAPIProxy.git
  • Get a Strava Developer account setup from Strava
  • Go into the back-end and open up App.js, place your client ID and client secret into the appropriate variables.
  • npm install
  • npm start and visit localhost:3100

Screen Shots

Login page

login page

Home page

home page

Photo Gallery

lazy load photos

Stats page

screen shot 2018-03-03 at 5 53 16 pm

Badge page

screen shot 2018-03-03 at 5 54 13 pm

Target Segment page

screen shot 2018-03-03 at 5 54 41 pm

Mobile view

mobile

kog-locker's People

Contributors

etcetera8 avatar

Watchers

 avatar

kog-locker's Issues

oauth

be able to log in as a different user

badges

center info in badge, regex for commas

backend

be able to store user data in db

Create New Default Badges

  • All Time Distance of 5, 10, 20 thousand miles

  • 100 mile ride

  • Hit Max Power of 1200, 1000, 800 watts in last 30 Rides

  • Burn 1200 kcals in a ride

  • Have average speed of 20 mph or more

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.