Coder Social home page Coder Social logo

inpercima / run-and-fun Goto Github PK

View Code? Open in Web Editor NEW
1.0 5.0 2.0 1.68 MB

Provide searching, statistics and visualization for activities from runkeeper.com

License: MIT License

JavaScript 1.28% Java 30.31% HTML 14.38% CSS 1.44% TypeScript 51.00% SCSS 1.59%
webapp angular spring-boot java maven runkeeper visualization graphs angular-cli java17 angular-cli15 angular15 spring-boot3

run-and-fun's Introduction

run and fun

MIT license Codacy Badge

Provide searching, statistics and visualization for activities from runkeeper.com.

This project was generated with swaaplate version 2.3.7s.

Prerequisites

Angular CLI

  • angular-cli 14.1.0 or higher

Docker

  • docker 20.10.14 or higher
  • docker-compose 2.3.3 or higher

Java

  • jdk 17 or higher

Node, npm or yarn

  • node 16.16.0 or higher in combination with
    • npm 8.12.2 or higher or
    • yarn 1.22.19 or higher, used in this repository

Runkeeper app registration

A runkeeper app is needed. Use existing or register new app at runkeeper.com.

Getting started

# clone project
git clone https://github.com/inpercima/run-and-fun
cd run-and-fun

Usage

Modules

For the client check run-and-fun - client.

For the server check run-and-fun - server.

For the docker check run-and-fun - docker.

run-and-fun's People

Contributors

cmrhdl avatar dependabot[bot] avatar inpercima avatar sepe81 avatar snyk-bot avatar

Stargazers

 avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

Forkers

sepe81 cmrhdl

run-and-fun's Issues

fix eslint issues

There are some issues they can be fixed. Code climate use eslint. We should check them and either use eslint or configure jshint/jscs.

pie chart will not load every time

It seems that the pie chart will not load correct if the internet connect is not stable enough. Sitting in the train with hotspot it loads the graphic either not or not completely.
chart

Manage global login

Currently the login page is shown when you logged in. It will be better if after the login the dashboard (dash page) will be shown.

So the login should be saved in cookies I think. What did you mean?

FYI @sepe81

Upgrade spring-boot to 1.5.x

At the moment we use spring-boot 1.4.6. When updating to 1.5.3 there is an exception when calling findAllByTypeOrderByDateDesc

10:34:50.689 INFO  n.i.r.service.RunAndFunServiceImpl:196 - {
  "bool" : {
    "must" : {
      "bool" : {
        "should" : {
          "term" : {
            "type" : "running"
          }
        }
      }
    }
  }
}
10:34:51.003 WARN  o.s.w.s.m.s.DefaultHandlerExceptionResolver:407 - Failed to write HTTP message: org.springframework.http.converter.HttpMessageNotWritableException: Could not write JSON document: (was java.lang.NullPointerException) (through reference chain: org.springframework.data.elasticsearch.core.aggregation.impl.AggregatedPageImpl["facets"]); nested exception is com.fasterxml.jackson.databind.JsonMappingException: (was java.lang.NullPointerException) (through reference chain: org.springframework.data.elasticsearch.core.aggregation.impl.AggregatedPageImpl["facets"])

Fetch only new activities from runkeeper

After login to runkeeper it's possible to index all activities through the given rest api. Every activity gets dowloaded and inserted/updated into elasticsearch (ES). It would be better to fetch only new activities after the first indexing has taken place.

enable or disable debug by url

It should be possible to activate an deactivate the debugmode by an paramter in the url. Default should be false - no debugmode. #46

correct using of validthis and ignoreline

While reading some lines about the topic validthis I desided to change back to ignoreline because validthis applies to the hole function not only to the next line.

name convention and file management

  • name of pages in js (plural?)
    • label: Activities, html: activities, controller: ActivityController, service: ActivityService -> should be renamed to Activities
    • label: Graphs, html: graphs, controller: GraphsController, service: GraphsService -> check ok
  • what about subdirs in js
    • subdirs for page like 'activities', 'dash' or for type 'controller', 'service' -> I prefer for page
  • what about subdirs in html
    • subdirs for page like 'activities', 'dash' or for type like 'pages', 'includes' -> I prefer for part
      #49

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.