Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/sunquakes/moonquakes
A rpc framework that Java/PHP(hyperf)/Golang intercommunicate implementation of JSON-RPC 2. Support consul & nacos.
https://github.com/sunquakes/moonquakes
demo go hyperf java jsonrpc jsonrpc2 jsonrpc4go jsonrpc4j php springboot
Last synced: 29 days ago
JSON representation
A rpc framework that Java/PHP(hyperf)/Golang intercommunicate implementation of JSON-RPC 2. Support consul & nacos.
- Host: GitHub
- URL: https://github.com/sunquakes/moonquakes
- Owner: sunquakes
- License: apache-2.0
- Created: 2022-08-25T04:34:01.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2024-10-17T14:01:27.000Z (about 2 months ago)
- Last Synced: 2024-10-19T19:44:05.777Z (about 2 months ago)
- Topics: demo, go, hyperf, java, jsonrpc, jsonrpc2, jsonrpc4go, jsonrpc4j, php, springboot
- Language: PHP
- Homepage: https://www.moonquakes.io/
- Size: 10.2 MB
- Stars: 7
- Watchers: 1
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
- awesome-golang-repositories - moonquakes
README
English | [π¨π³δΈζ](README_ZH.md)
# moonquakes
## Documentation
Visit [moonquakes.io](https://moonquakes.io).
## Description
Moonquakes is a demo project. It show how to intercommunicate in use of jsonrpc protocol in some web framework, those
web framework is written by java, php or golang.In moonquakes, the java framework is springboot, it use [jsonrpc4j](https://github.com/sunquakes/jsonrpc4j) to
communicate with go and php framework; The php framework is [Hyperf](https://github.com/hyperf/hyperf), it has
own [jsonrpc component](https://www.hyperf.wiki/3.0/#/en/json-rpc) to communicate with go and java framework; The go
framework use [jsonrpc4go](https://github.com/sunquakes/jsonrpc4go) to communicate with java and php framework.## Getting started
### IP
- Use ip.
```shell
# Clone code.
git clone [email protected]:sunquakes/moonquakes.gitcd moonquakes
# Switch to branch main.
git switch main# Build image.
docker-compose build# Run docker container.
docker-compose up
```### Registration & Discovery
- Use consul.
```shell
# Clone code.
git clone [email protected]:sunquakes/moonquakes.gitcd moonquakes
# Switch to branch consul.
git switch consul# Build image.
docker-compose build# Run docker container.
docker-compose up
```- Use nacos.
```shell
# Clone code.
git clone [email protected]:sunquakes/moonquakes.gitcd moonquakes
# Switch to branch nacos.
git switch nacos# Build image.
docker-compose build# Run docker container.
docker-compose up
```