quest-app-backend

module
v0.0.0-...-ea178e4 Latest Latest
Warning

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

Go to latest
Published: May 8, 2023 License: Apache-2.0

README

Prerequisites

  • Go 1.18 (should still be backwards compatible with earlier versions)

Running locally

  1. From root of the repo
  2. Run docker-compose up will start the dependencies and server on port 8080

Running via docker

  1. From root of the repo
  2. Run docker-compose up will start the dependencies and server on port 8080

Postman

The collections will need an environment setup with scheme, port and host variables setup with values of http, 8080 and localhost respectively.

Run tests

Some of the integration tests use docker to spin up dependencies on demand (ie a postgres db) so just be aware that docker is needed to run the tests.

  1. From root of the repo
  2. Run go test ./...

Directories

Path Synopsis
cmd
internal
events
Package events represents a stub for producing events to a Kafka topic, a real implementation would contain logic for retrying failed events etc
Package events represents a stub for producing events to a Kafka topic, a real implementation would contain logic for retrying failed events etc
users/mocks
Package mocks is a generated GoMock package.
Package mocks is a generated GoMock package.

Jump to

Keyboard shortcuts

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