go-exercises-backend

module
v1.5.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 17, 2021 License: MIT

README

go-exercises-backend

GoDoc Go Report Card Build Status

Installation

Prepare the directory:

$ mkdir --parents "$(go env GOPATH)/src/github.com/thewizardplusplus/"
$ cd "$(go env GOPATH)/src/github.com/thewizardplusplus/"

Clone this repository:

$ git clone https://github.com/thewizardplusplus/go-exercises-backend.git
$ cd go-exercises-backend

Install dependencies with the dep tool:

$ dep ensure -vendor-only

Build the project:

$ go install ./...

Usage

$ go-exercises-backend

Environment variables:

  • SERVER_STATIC_FILE_PATH — path to static files (default: ./static);
  • addresses:
    • SERVER_ADDRESS — server URI (default: :8080);
    • STORAGE_ADDRESSPostgreSQL connection URI (default: postgres://postgres:postgres@localhost:5432/postgres?sslmode=disable);
    • MESSAGE_BROKER_ADDRESSRabbitMQ connection URI (default: amqp://rabbitmq:rabbitmq@localhost:5672);
  • solution registration:
    • SOLUTION_REGISTER_BUFFER_SIZE — solution registration channel capacity (default: 1000);
    • SOLUTION_REGISTER_CONCURRENCY — amount of solution registration threads (default: 1000);
  • authorization:
    • AUTHORIZATION_TOKEN_SIGNING_KEY — authorization token signing key (is generated automatically if empty; default: empty);
    • AUTHORIZATION_TOKEN_TTL — authorization token TTL (default: 24h).

API Description

API description in the format of a Postman collection: docs/postman_collection.json.

License

The MIT License (MIT)

Copyright © 2021 thewizardplusplus

Directories

Path Synopsis
cmd
gateways

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL