sbx0 / microservices

The supplementary frontend project is https://github.com/sbx0/nextjs.

Home Page:https://next.sbx0.cn/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

microservices (uno game server) [under construction]

License Build Status Codacy Badge Codacy Badge

This is my microservices practice project. My goal is build the uno game backend server.

The supplementary frontend project is https://github.com/sbx0/nextjs.

You can visit https://next.sbx0.cn to see this project's online version, but the user register function is not public because this project is under construction. So if you are interested in this project and want to use it online, you can email me, and I will give you an account for free. My email address is in my GitHub home page.

Features

  • basic uno game rules
  • one click matching gamers
  • create game room and invite your friends
  • no gamer size limit

Demo

demo.gif

jetbrains

Composition

Role Framework
Registration Center Netflix Eureka
Configuration Center Spring Cloud Config
Gateway Spring Cloud Gateway
HTTP client Feign
Database MySQL
Cache Redis
Code Generator MyBatis Plus Generator
Authority Authentication Sa-Token

Running Examples

  1. git clone
  2. run ./build.sh i to init
    • run ./build.sh to build and run on server
    • run ./build.sh local to build and run on wsl2
  3. visit http://127.0.0.1:8761 to Eureka

IDEA RUN CONFIG

CONFIG_URL=http://wsl2.sbx0.cn:8888;SECURITY_PASSWORD=test;SECURITY_NAME=sbx0;REGION=docker;VERSION=0.0.0;REGISTRY_URL=http://wsl2.sbx0.cn:8761/eureka/;IP_ADDRESS=win.sbx0.cn;DB_URL=jdbc:mysql://wsl2.sbx0.cn:3306/assembler?serverTimezone=Asia/Shanghai&useUnicode=true&characterEncoding=utf8&useSSL=false&allowPublicKeyRetrieval=true

WSL2

/etc/init.d/docker start

arthas

docker exec -it container_id /bin/bash

curl -O https://arthas.aliyun.com/arthas-boot.jar

java -jar arthas-boot.jar

watch cn.sbx0.microservices.uno.service.impl.GameRoomServiceImpl message {params} -x 2

Code Coverage

mvn verify --fail-fast

About

The supplementary frontend project is https://github.com/sbx0/nextjs.

https://next.sbx0.cn/

License:Apache License 2.0


Languages

Language:Java 96.3%Language:Shell 2.1%Language:Dockerfile 1.4%Language:Lua 0.2%