$ git clone https://github.com/tomoish/github-persona.git
Create your GitHub token (starting with ghp_) and enter it into the .env file located at ./src/.env. Use the following format:
GITHUB_TOKEN=<your github token>
GITHUB_TOKEN1=<your github token>
GITHUB_TOKEN2=<your github token>
-
run main.go
# ./src $ go run main.goor
$ docker-compose exec app go run main.go -
Test it out at http://localhost:8080/create?username= (username)
-
docker compose up
# ./ $ docker compose up -d -
Test it out at http://localhost:8080/create?username= (username)
- install golangci-lint
$ berw install golangci-lint - run golanci-lint in ./src
the setting file is ./.golangci.yml
# ./src $ golangci-lint run --fix
- install pre-commit
$ brew install pre-commit - setting for pre-commit in root directory
the setting file is ./.pre-commit-config.yaml
$ pre-commit install -t pre-commit