Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

https://github.com/rodrigo-brito/gocity

:bar_chart: Code City metaphor for visualizing Go source code in 3D
https://github.com/rodrigo-brito/gocity

go golang hacktoberfest react visualization

Last synced: about 1 month ago
JSON representation

:bar_chart: Code City metaphor for visualizing Go source code in 3D

Lists

README

        

GoCity

[![Actions Status](https://github.com/rodrigo-brito/gocity/workflows/tests/badge.svg)](https://github.com/rodrigo-brito/gocity/actions)
[![codecov](https://codecov.io/gh/rodrigo-brito/gocity/branch/master/graph/badge.svg)](https://codecov.io/gh/rodrigo-brito/gocity)
[![Go Report Card](https://goreportcard.com/badge/github.com/rodrigo-brito/gocity)](https://goreportcard.com/report/github.com/rodrigo-brito/gocity)
[![GoDoc](https://godoc.org/github.com/rodrigo-brito/gocity?status.svg)](https://godoc.org/github.com/rodrigo-brito/gocity)

License MIT




Available here: https://go-city.github.io

Research Paper: [26th International Conference on Software Analysis, Evolution and Reengineering (SANER)](https://ieeexplore.ieee.org/document/8668008)

PDF Version: [ASERG Page](https://homepages.dcc.ufmg.br/~mtov/pub/2019-saner-gocity.pdf)

GoCity is an implementation of the Code City metaphor for visualizing source code. GoCity represents a Go program as a city, as follows:

- Folders are districts
- Files are buildings
- Structs are represented as buildings on the top of their files.

## Structures Characteristics

- The Number of Lines of Source Code (LOC) represents the build color (high values makes the building dark)
- The Number of Variables (NOV) correlates to the building's base size.
- The Number of methods (NOM) correlates to the building height.

## Installation

- `go install github.com/rodrigo-brito/gocity@latest`
- Or just head to the [releases](https://github.com/rodrigo-brito/gocity/releases) page and download the latest version for you platform.

## Usage:
- Online: https://go-city.github.io
- Commands
- `gocity server` - Start server
- `gocity open ` - Open a specific Github project from github
- `gocity open ./my-project` - Open a local directory

## UI / Front-end

The UI is built with React and uses [babylon.js](https://www.babylonjs.com/) to plot 3D structures. The front-end source code is available in the [front-end](https://github.com/rodrigo-brito/gocity/tree/front-end) branch.

### Related Works
- [Code City](https://wettel.github.io/codecity.html) by [Richard Wettel](https://twitter.com/richardwettel)
- [JS City](https://github.com/ASERG-UFMG/JSCity/wiki/JSCITY) by [Marcus Viana](https://github.com/malilovick).

This tool makes part of a scientific research developed at Federal University of Minas Gerais (UFMG)

Student: [Rodrigo Brito](https://github.com/rodrigo-brito)

Advisor: [Marco Tulio Valente](https://homepages.dcc.ufmg.br/~mtov/)