Skip to content

Mogara/OpenSGS

Repository files navigation

OpenSGS

Get Started

Requirements

  • Go 1.17+
  • Go modules enabled

Run Locally

  1. Clone the repository
    git clone https://github.com/Mogara/OpenSGS.git
  2. Install dependencies
    cd OpenSGS
    go mod download
  3. Run the server
    go run cmd/server/main.go

CLI Usage

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

Development

  1. Setup Go environment(v1.17)
  2. Install golangci-lint
  3. Install pre-commit
  4. 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

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published