rodrigo-brito / gocity

:bar_chart: Code City metaphor for visualizing Go source code in 3D
https://go-city.github.io
MIT License
1.8k stars 139 forks source link

Receive branch name as parameter #17

Closed rodrigo-brito closed 5 years ago

rodrigo-brito commented 5 years ago

We used master as default branch. Threfore, other branches can be uses. Maybe, it can be informed by a query param when requested.

Ref https://github.com/rodrigo-brito/gocity/blob/master/model/node.go#L167

Avni-Sharma commented 5 years ago

Hi, I would like to work on this

rodrigo-brito commented 5 years ago

Have fun @Avni-Sharma

rodrigo-brito commented 5 years ago

Hi @Avni-Sharma, how its going on? If you need some help to start, I can told you some tips.

Avni-Sharma commented 5 years ago

Yeah sure. That might help :)

rodrigo-brito commented 5 years ago

You should include one parameter in function New: https://github.com/rodrigo-brito/gocity/blob/master/model/node.go#L110

And receive it as query parameter, as the same as project URL https://github.com/rodrigo-brito/gocity/blob/6ae7b2d5b777dedadaeacf8b0f6b0521cb1c2ae4/handle/analyzer.go#L27

To start the project locally, just run go run main.go server