A project that drawing an image in runtime and then returns as []byte. Needs twitch-general-follows-gRPC server
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
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
TGF_SERVICE_HOST=localhost:8080 // your twitch-general-follows-grpc server url
PORT=80 // application running port (optional, default: 8080)
- Docker
- CI/CD
- Tests
- Crossplatform working with files (now: Linux)