shine-o / shine.engine.emulator

GNU General Public License v2.0
0 stars 0 forks source link

Shine Engine Emulator


Go Report Card

Videos showcase:

Docker setup

 # you may need access to some private repositories, contact me if so   
 git submodule update --init

 cp .env.dist .env

 docker-compose up -d --build

Manual setup (easier for development of individual services)

 # you may need access to some private repositories, contact me if so
  git submodule update --init

 cp .env.dist .env

 # run only postgres + redis
 docker-compose -f docker-compose.local.yml up -d

 go mod download

# run migrations on the database
 go run cmd/migrations/main.go init  --config "configs/local/migrate.yml"
 go run cmd/migrations/main.go up  --config "configs/local/migrate.yml"

 # run services    
 go run cmd/world-master/world-master.go serve --config "configs/local/world-master.yml"
 go run cmd/zone-master/zone-master.go serve --config "configs/local/zone-master.yml"
 go run cmd/world/world.go serve --config "configs/local/world.yml"
 go run cmd/login/login.go serve --config "configs/local/login.yml"
 go run cmd/zone/zone.go serve --config "configs/local/zone.yml"

Metrics

For metrics I use the following services:

The services are configured and ready to use in the docker-compose.metrics.yml file. You can get something like this:

Event logic for login, world, zone services

From tcp connection to network command to logic handler

Processes and events example