Git Product home page Git Product logo

fit's Introduction

fit

A step count leaderboard.

See the weekly steps count of all the registered people and motivate yourself to walk a bit more maybe.

How do we get your step count?
When you click on the "Register" button, we ask your permission to read your google fit data. We make this leaderboard, by fetching your step counter in your registered google fit account.

Why Google Fit? Different people have different activity trackers, but almost all of them can be synced with your google fit account. So, we except you to install a side-app or activate google-fit sync with your activity tracker. I know, it's irritating.

Installation

Pre-requisite

  • You should setup a client credentials on google console with appropriate redirect URI.
    • If your origin URL is x, your redirect URI will be x/auth
  • Download the credentials json.

Local

  • place credentials json in /etc/secret/credentials.json
# src folder
# run the mongo db using docker or any other method
docker run -d -p 27017:27017 --name mongo mongo 

# make sure that mongo resolves to at whatever ip mongodb is running
echo "0.0.0.0     mongo" >> /etc/hosts

# build the the code
go build

# run the code
./fit

Compose

  • place credentials json in /etc/secret/credentials.json
  • run docker-compose up

Helm

  • place credentials json at <x>
  • you are likely to change ingress in the values of the chart
# charts

# create secret do that our app can access the credentials
kubectl create secret generic google-creds --from-file=<x>

# add mongo db chart
helm repo add bitnami https://charts.bitnami.com/bitnami
helm dependency build

# insall the chart
helm install fit .

Acknowledgement

The UI of this app was inspired from the tutorials at https://tympanus.net/codrops/

fit's People

Contributors

deepsourcebot avatar sedflix avatar

Stargazers

 avatar  avatar

Watchers

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