File tree Expand file tree Collapse file tree
java/io/github/devopsws/demo Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -4,7 +4,8 @@ test-e2e:
44 cd e2e && ./start.sh
55run-demo :
66 cd e2e && docker compose up server
7-
7+ run :
8+ mvn package && java -jar target/demo-0.0.1-SNAPSHOT.jar
89local-test :
910 atest run -p e2e/test-suite.yaml
1011
Original file line number Diff line number Diff line change @@ -10,6 +10,9 @@ make build-image test-e2e
1010## GraphQL
1111You can visit it via: http://localhost:8080/graphiql?path=/graphql
1212
13+ ## tRPC
14+ The [ tRPC] ( https://github.com/trpc-group/trpc-java ) endpoint is: ` http://localhost:9090 `
15+
1316## OpenAPI
1417You can visit the swagger UI with the following address:
1518
Original file line number Diff line number Diff line change 1717 code=-1
1818 docker-compose -f " $file " logs | grep server
1919 docker-compose -f " $file " logs | grep testing
20- docker-compose ps -a | grep e2e- testing | grep " Exited (0)"
20+ docker-compose ps -a | grep testing | grep " Exited (0)"
2121 if [ $? -eq 0 ]
2222 then
2323 code=0
2424 echo " successed"
2525 fi
26+ docker-compose ps -a
2627
2728 docker-compose -f " $file " down
2829 set -e
Original file line number Diff line number Diff line change 11package io .github .devopsws .demo ;
22
3+ import com .tencent .trpc .spring .boot .starters .annotation .EnableTRpc ;
34import org .springframework .boot .SpringApplication ;
45import org .springframework .boot .autoconfigure .SpringBootApplication ;
56
7+ @ EnableTRpc
68@ SpringBootApplication
79public class DemoApplication {
810
Load Diff This file was deleted.
Original file line number Diff line number Diff line change 1+ # https://spring.io/guides/gs/graphql-server/
2+ spring :
3+ graphql :
4+ graphiql :
5+ enabled : true
6+
7+ server :
8+ port : 8080
9+
10+ trpc :
11+ server :
12+ app : TestApp # App name
13+ server : TestServer # Server name
14+ local_ip : 0.0.0.0 # Local ip
15+ service : # Service list
16+ - name : trpc.TestApp.TestServer.Greeter1 # Service name
17+ impls : # Service implement classes
18+ - io.github.devopsws.demo.service.TRPCService
19+ ip : 0.0.0.0 # Listen ip
20+ port : 9090 # Listen port
21+ network : tcp # Network type, tcp or udp
You can’t perform that action at this time.
0 commit comments