- Go 1.17+
- Go modules enabled
- Clone the repository
git clone https://github.com/Mogara/OpenSGS.git
- Install dependencies
cd OpenSGS go mod download
- Run the server
go run cmd/server/main.go
flag | description | default | type |
---|---|---|---|
--host | host to listen on | localhost | string |
--port | port to listen on | 8080 | number |
--log-level | log level | info | string |
--allowed-origin | allowed request origin | array | |
--debug | enable debug mode | false | bool |
- Setup Go environment(v1.17)
- Install golangci-lint
- Install pre-commit
- Install
pre-commit
hooks# install commit-msg hook pre-commit install --hook-type commit-msg pre-commit install --hook-type pre-push # install pre-commit hook pre-commit install # test hooks pre-commit run --all-files