Giter VIP home page Giter VIP logo

codecrystal's Introduction

Codecrystal

A tool to create a visualisation of the file structure of your Javscript GitHub repo and display it as an image in your READme

##Why

  • Provide a visual representation of the links between files in your repo
  • Enable members of your team and users of your project/module to understand how it works more easily
  • Help with code reviewing

##What

  • Log in with GitHub
  • Retrieve user's repos
  • Select repos for code crystal map
  • Retrieve contents of files in selected repos
  • Parse files
  • Map internal and external dependancies for
    • JavaScript files
    • HTML files
  • Display file structure on a map with arrows show the direction of dependency
    • Back end map
    • Front end map
  • Allow users to link to the image on their READme
  • Dynamically update the file structure every time a commit is made to master

####Stretch goals

  • Colour code nodes in the file map to show the different types of files

##How

  • Hapi.js

    • Server
  • GitHub Api:

    • enable users to log in and find their repos
    • read all the files from the latest commit to the master branch
    • extract the contents of the file
  • D3.js

    • visualization of file links
  • Heroku

How to run the project

You'll need to have NodeJs installed on your computer before you start.

  • Clone the repo

    git clone xxxxxxxxxxxx

  • Install the dependancies

    npm install

  • Create a Github Application with the entry point set to http://localhost:8000 and the redirectUri to http://localhost:8000/login. Add the client_ID and client_SECRET to your environment variables using

    exports client_ID="...your..clientID..." exports client_SECRET="...your..clientsecret..."

  • Run the server

    node server.js

  • Point your browser to http://localhost:8000

codecrystal's People

Contributors

nikhilaravi avatar rjmk avatar

Watchers

 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.