Skip to content

Service which manages image uploads and fetches

Notifications You must be signed in to change notification settings

Uplite/image-service

Repository files navigation

Image Service

A service for managing uploads and fetches for image content.

Quick Start

Must have Go compiler, GNU Make, and protoc. Additional dependencies required for code generation will be installed via the make targets if they are not present in your $GOPATH. See the makefile for an exhaustive list of dependencies.

    # Clone the repository
    git clone git@github.com:Uplite/image-service.git
    cd image-service

    # Generate & Compile
    make generate
    make build

    # Assuming you have a valid environment:
    ./bin/image-service-writer

    # OR
    ./bin/image-service-reader

Environment

Assure that all required environment variables are present. See the example .env.example file for required environment variables.

Code Generation

Generate the gRPC code via the make generate target.

Compilation

To compile, run the make build or make target. This will generate code and compile the programs in the cmd directory.

Container

There are Dockerfiles for both the reader and the writer available inside of the build/package/ directory.

Testing

To test, run the make test or COUNT=n make test target. The default make test will run with the race detector enabled and bust the test cache each run with a defualt -count=1 test flag, but receives an argument should you desire to pass one.

About

Service which manages image uploads and fetches

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published