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

https://github.com/ayonious/git-network-trainline

πŸš‚ Show a city's train lines in form of Git Network
https://github.com/ayonious/git-network-trainline

git graph javascript road trainline

Last synced: about 1 month ago
JSON representation

πŸš‚ Show a city's train lines in form of Git Network

Awesome Lists containing this project

README

          

Git Network Trainline


πŸš‚ Show a city's train lines in form of Git Network

![Berlins Underground rail map](https://cdn.jsdelivr.net/gh/ayonious/git-network-trainline@master/staticresources/screenshot.2.png)

- Berlin's underground rail GitHub network view : https://github.com/ayonious/git-network-trainline/network

# ❓Synopsis

Use this script to create road maps of your own city. This uses simple graph theory on top of git commands to generate a nice git network graph.

# πŸƒβ€β™‚οΈ Run

First you need to add inputs. In this file https://github.com/ayonious/git-network-trainline/blob/master/src/rawInput.js

1. Add your git remote head.
2. Add your roads
3. You can add comments while describing the stations as `imoji` param. This will showup in the git network graph as label

Now run

```bash
node .
```

When all is finished successfully

```bash
Git Network generated Successfully!!
```

Now go back to your git network network page: https://github.com/{username}/{repo}/network

Mine is: https://github.com/ayonious/git-network-trainline/network

> Rememeber, you can drag and scroll the git graph left and right.

Enjoy!

# 😞 Limitations

1. Make sure when inputting the graph there is no cyclic dependencies. This will make the graph not print full map and stop at a junction.
2. Dont have same imoji for 2 different stations unless its a junction. Also line names need to be distinct.

# πŸ’‘ Inspired by

[yangshun/smrt-git](https://github.com/yangshun/smrt-git) which shows Singaporen metro lines in Git Network

# πŸ“ License

[MIT](https://github.com/ayonious/git-network-trainline/blob/master/LICENSE)