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

https://github.com/antonybudianto/gitcard-go

Indonesia GitHub stats for fun. Frontend at https://github.com/antonybudianto/gitcard
https://github.com/antonybudianto/gitcard-go

gitcard-indonesia github go golang gomodule grpc rest

Last synced: 7 months ago
JSON representation

Indonesia GitHub stats for fun. Frontend at https://github.com/antonybudianto/gitcard

Awesome Lists containing this project

README

          

# Go GitHub

## Requirements

- Go >= 1.11
- Github Personal Access Token
- Get one from https://github.com/settings/tokens
- Set the token as env variable `GH_ACCESS_TOKEN`

## Web mode
1. Run

```sh
go run cmd/web/web.go
```
2. Open browser: http://localhost:8080/gh/profile/antonybudianto

## GRPC mode
1. Run

```sh
go run cmd/grpc_server/server.go
```

2. Try using GRPC client:

```sh
go run cmd/grpc_client/client.go
```

3. Misc: Generate proto

```sh
make gen-proto
```

## CLI mode
1. Run

```sh
go run cmd/cli/cli.go
```

## Build for Operating System specific target

MacOS
```sh
$ make build-osx
```

Linux
```sh
$ make build-linux
```

# License
MIT