Skip to content

modaniru/tgf-image-generator-grpc

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Twitch general follows

A project that drawing an image in runtime and then returns as []byte. Needs twitch-general-follows-gRPC server

Content

  1. Run Locally
  2. Docker
  3. Environment variables
  4. Tasks

Run Locally

Clone the project

  git clone https://github.com/modaniru/tgf-image-generator-grpc

Go to the project directory

  cd tgf-image-generator-grpc

Create .env file

  touch .env

Write secrets in .env (more)

  TGF_SERVICE_HOST=your.tgf.server

If you can run "make" commands

  make

Else:
Install dependencies

go get ./...

Start the server

go run src/main.go

the server will run on 8080 port
You can change port check about .env

Docker

soon run from Docker Hub

docker run -p 8080:8080 -e TGF_SERVICE_HOST=your-url modaniru/tgf-image-generator:latest

or

docker run -p 8080:8080 --env-file path modaniru/tgf-image-generator:latest

build and run docker container

docker build -t imageName .
docker run --env-file path -p 8080:8080 imageName

Environment variables

  TGF_SERVICE_HOST=localhost:8080 // your twitch-general-follows-grpc server url
  PORT=80 // application running port (optional, default: 8080)

Tasks

  • Docker
  • CI/CD
  • Tests
  • Crossplatform working with files (now: Linux)

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published