tonycody / gitlab-statistics

Analyzes the source code of your Gitlab Instance

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

GitLab Source Code Statistics

What does it do?

This application crawls the whole source code base which is available in your user context. If you are a gitlab administrator, you will gain an overview of all sources. Currently you are able to see file names, file extensions, and project names to identify the usage of the files, e.g. to get an overview which programming languages are used inside of a project or overall projects.

Requirements

you need the following dependencies installed to run the application:

  1. docker
  2. docker-compose

If you do not have docker, you need to setup

  1. elasticsearch
  2. kibana
  3. nodejs
  4. npm

manually. Keep in mind that you might need to customize your elasticsearch server url inside of config.js.

Setup

  1. setup a new access token by visiting https://yourgitlabinstance.example.com/profile/personal_access_tokens
  2. Rename config.example.js to config.js
  3. add your gitlab instance url and your private token
  4. setup the applications either using docker or npm:
  • when using docker: run

     $ docker-compose up -d --build
    
  • when using npm: run

     $ npm install
     $ npm start
    
  1. visit your Kibana-Instance and import the export.json file.
  2. Switch to the Dashboards to analyze your data.

Have Fun!

About

Analyzes the source code of your Gitlab Instance

License:MIT License


Languages

Language:JavaScript 100.0%