Giter Site home page Giter Site logo

githubble's Introduction

GitHubble

The Idea of this Web-App is to discover the GitHub Galaxy. You start at a fixed point (e.g. your GitHub Account) and travel throughout the GitHub Repositories.

There are several kinds of nodes:

  • User - the basic GitHub User Account (identified by Name and Avatar)
  • Organisation - Organisations hold Teams of Users (identified by Name and Avatar)
  • Repositories - small Nodes owned by Organisations or Users.

Concepts are still in Development.

Uses

  • d3.js
  • Play2 Scala
  • public GitHub Api

Started at innoQ Summer of Code 16./17. August 2014.

githubble's People

Contributors

phaus avatar martinei avatar

Stargazers

gabriel duncan avatar

Watchers

 avatar David Kamphausen avatar  avatar  avatar Alexander Heusingfeld avatar Tobias Neef avatar  avatar James Cloos avatar  avatar

githubble's Issues

calling /users/martinei.json produces exception...

[info] play - Application started (Dev)
[error] application -

! @6j919oojn - Internal server error, for (GET) [/users/martinei.json] ->

play.api.Application$$anon$1: Execution exception[[JsResultException: JsResultException(errors:List((,List(ValidationError(error.expected.jsstring,WrappedArray())))))]]
    at play.api.Application$class.handleError(Application.scala:296) ~[play_2.11-2.3.3.jar:2.3.3]
    at play.api.DefaultApplication.handleError(Application.scala:402) [play_2.11-2.3.3.jar:2.3.3]
    at play.core.server.netty.PlayDefaultUpstreamHandler$$anonfun$14$$anonfun$apply$1.applyOrElse(PlayDefaultUpstreamHandler.scala:205) [play_2.11-2.3.3.jar:2.3.3]
    at play.core.server.netty.PlayDefaultUpstreamHandler$$anonfun$14$$anonfun$apply$1.applyOrElse(PlayDefaultUpstreamHandler.scala:202) [play_2.11-2.3.3.jar:2.3.3]
    at scala.runtime.AbstractPartialFunction.apply(AbstractPartialFunction.scala:36) [scala-library-2.11.1.jar:na]
Caused by: play.api.libs.json.JsResultException: JsResultException(errors:List((,List(ValidationError(error.expected.jsstring,WrappedArray())))))
    at play.api.libs.json.JsValue$$anonfun$2.apply(JsValue.scala:67) ~[play-json_2.11-2.3.3.jar:2.3.3]
    at play.api.libs.json.JsValue$$anonfun$2.apply(JsValue.scala:67) ~[play-json_2.11-2.3.3.jar:2.3.3]
    at play.api.libs.json.JsResult$class.fold(JsResult.scala:77) ~[play-json_2.11-2.3.3.jar:2.3.3]
    at play.api.libs.json.JsError.fold(JsResult.scala:13) ~[play-json_2.11-2.3.3.jar:2.3.3]
    at play.api.libs.json.JsValue$class.as(JsValue.scala:65) ~[play-json_2.11-2.3.3.jar:2.3.3]
[error] application -

! @6j91a10db - Internal server error, for (GET) [/users/martinei.json] ->

play.api.Application$$anon$1: Execution exception[[JsResultException: JsResultException(errors:List((,List(ValidationError(error.expected.jsstring,WrappedArray())))))]]
    at play.api.Application$class.handleError(Application.scala:296) ~[play_2.11-2.3.3.jar:2.3.3]
    at play.api.DefaultApplication.handleError(Application.scala:402) [play_2.11-2.3.3.jar:2.3.3]
    at play.core.server.netty.PlayDefaultUpstreamHandler$$anonfun$14$$anonfun$apply$1.applyOrElse(PlayDefaultUpstreamHandler.scala:205) [play_2.11-2.3.3.jar:2.3.3]
    at play.core.server.netty.PlayDefaultUpstreamHandler$$anonfun$14$$anonfun$apply$1.applyOrElse(PlayDefaultUpstreamHandler.scala:202) [play_2.11-2.3.3.jar:2.3.3]
    at scala.runtime.AbstractPartialFunction.apply(AbstractPartialFunction.scala:36) [scala-library-2.11.1.jar:na]
Caused by: play.api.libs.json.JsResultException: JsResultException(errors:List((,List(ValidationError(error.expected.jsstring,WrappedArray())))))
    at play.api.libs.json.JsValue$$anonfun$2.apply(JsValue.scala:67) ~[play-json_2.11-2.3.3.jar:2.3.3]
    at play.api.libs.json.JsValue$$anonfun$2.apply(JsValue.scala:67) ~[play-json_2.11-2.3.3.jar:2.3.3]
    at play.api.libs.json.JsResult$class.fold(JsResult.scala:77) ~[play-json_2.11-2.3.3.jar:2.3.3]
    at play.api.libs.json.JsError.fold(JsResult.scala:13) ~[play-json_2.11-2.3.3.jar:2.3.3]
    at play.api.libs.json.JsValue$class.as(JsValue.scala:65) ~[play-json_2.11-2.3.3.jar:2.3.3]

adding d3.js lib to assets

At the moment, if we load the Site over https there is an error:

Laden von gemischten aktiven Inhalten "http://d3js.org/d3.v3.min.js" wurde blockiert.
ReferenceError: d3 is not defined


var force = d3.layout.force()


index.html (Zeile 56, Spalte 7)

So we should add the JS Lib to the application assets. That means, that we need to make a template out of index.html and use the Play Asset functions.

[Frontend] append Childs onClick

Greate switch contxt onClick of nodes.

// Toggle children on click.
function click(d) {
  if (!d3.event.defaultPrevented) {
    if (d.children) {
      d._children = d.children;
      d.children = null;
    } else {
      d.children = d._children;
      d._children = null;
    }
    update();
  }
}

[Frontend] add call history

show a nice list of previous visited elements...

Maybe we can use the Browser History API?
Otherwise we need to store it in a cockie / on the Backend... that wouldn't be nice :-/

Create README

It would be nice to know what this project is about.

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.