Skip to content

Forked from lunar-hill/renderer. Replaces the docker with http server

License

Notifications You must be signed in to change notification settings

hawl1/brick-hill-renderer

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

86 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

FauxGL Renderer For Local

Fnproject was a stupid idea so here we go

how to test

  1. install golang

  2. initalize go module

go mod init github.com/hawl1/brick-hill-renderer # you may want to change the link if you are gonna make changes
  1. get packages
go get github.com/gofrs/uuid
go get github.com/hawl1/brickgl
go get github.com/spf13/pflag
go get github.com/nfnt/resize # i dont give a damn even if its not being developed
  1. compile it down
go build
  1. run the server
./brick-hill-renderer # this may depend because go puts the repo name from the link (i.e. github.com/hawl1/brick-hill-renderer)
  1. test the server
curl -X POST \
  -H "Content-Type: application/json" \
  -H "X-Access-Key: change-it-or-die" \
  -d '{"avatarJSON":"","size":512}' \
  http://0.0.0.0:8080/render

Changing settings and stuff

go run main.go --host 0.0.0.0 --port 7231 --accesskey change-it-or-die
  • --host argument allows you to bind the ip that will get used
  • --port argument allows you to bind the port that will get used
  • --accesskey argument allows you to change the accesskey that will be used to access the renderer

That's all!

About

Forked from lunar-hill/renderer. Replaces the docker with http server

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Go 100.0%