Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/octoposprime/op-be-graphql

OctopOS Prime Backend Api Gateway
https://github.com/octoposprime/op-be-graphql

api-gateway backend golang graphql microservice

Last synced: 4 days ago
JSON representation

OctopOS Prime Backend Api Gateway

Awesome Lists containing this project

README

        

# op-be-graphql
The GraphQL Services for the Backend Layer of OctopOSPrime ( Edited )

[![Build - Test](https://github.com/octoposprime/op-be-graphql/actions/workflows/ci.yml/badge.svg)](https://github.com/octoposprime/op-be-graphql/actions/workflows/ci.yml)
[![Docker Image Publish](https://github.com/octoposprime/op-be-graphql/actions/workflows/cd.yml/badge.svg)](https://github.com/octoposprime/op-be-graphql/actions/workflows/cd.yml)

## 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](https://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

```