Skip to content

octoposprime/op-be-graphql

Repository files navigation

op-be-graphql

The GraphQL Services for the Backend Layer of OctopOSPrime ( Edited )

Build - Test Docker Image Publish

Pre-Requirements

Graphql

export PATH="$PATH:$(go env GOPATH)/bin"

go get github.com/99designs/gqlgen

make gql-generate

Development Environment

You have to see github.com/octoposprime/op-be-docs before development.

.env

POSTGRES_USERNAME=op
POSTGRES_PASSWORD=op
JWT_SECRET_KEY=op
REDIS_PASSWORD=op

Local Run

make local-run

Docker Run

TEST=true POSTGRES_USERNAME=op POSTGRES_PASSWORD=op JWT_SECRET_KEY=op REDIS_PASSWORD=op make docker-build
make docker-run