Skip to content

Bushiroad-go is backend of bushiroad game writen in golang

License

Notifications You must be signed in to change notification settings

phuctk93/bushiroad-go

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

bushiroad-go

Bushiroad-go is backend of bushiroad game writen in golang

How to run

Config

Open config.json with any text editor. Edit like you want:

  • admin: add your admin account here
  • hosts: add your hosts to CORS
  • database: add posgresql config
  • example: add fake data
  • tls: enable https for back-end
  • cert and key: required for tls to serve with https.

Run

  • Open terminal at current folder for linux server like Debian/ Ubuntu/ Fedora/ CentOS and type:
./bushiroad-go

New server will serve at localhost:5000

How to build

Required

go get github.com/go-pg/pg
  • Gin frame-work and some libraries of gin
go get github.com/gin-gonic/gin
go get github.com/gin-contrib/cors
  • Go JWT:
go get github.com/dgrijalva/jwt-go
  • Go shortid:
go get github.com/teris-io/shortid

Build to run

  • Open terminal at current folder with any OS and type:
go build && ./bushiroad-go

About

Bushiroad-go is backend of bushiroad game writen in golang

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages