Giter Site home page Giter Site logo

douyu / jupiter-layout Goto Github PK

View Code? Open in Web Editor NEW
36.0 5.0 7.0 22.52 MB

Jupiter Project Layout

License: Apache License 2.0

Go 84.84% Dockerfile 0.55% Makefile 12.17% Shell 2.44%
douyu jupiter layout buf framework go golang golangci-lint mockery wire

jupiter-layout's Introduction

Jupiter Project Layout

GoTest codecov Go Report Card license

Concepts

  • Support HTTP/gRPC with Protobuf
  • Single Repo and Multiple Applications
  • High Cohesion and Low Coupling
  • Dependency Injection
  • Auto Code Generation
  • Unit Test with Mock
  • E2E Test with Docker
  • Define errors in Proto
  • Define validate rules in Proto
  • Auto generate Swagger API Documentation
  • Builtin Swagger UI

Quick Start with Kubernetes

  • Deploy Juno
kubectl apply -f https://github.com/douyu/juno/releases/download/latest/install.yml
  • Wait for ready
kubectl wait --for=condition=available --timeout=600s deployment/juno-admin -n default
  • Deploy Jupiter-Layout
kubectl apply -f https://github.com/douyu/jupiter-layout/releases/download/latest/install.yml
  • Wait for ready
kubectl wait --for=condition=available --timeout=600s deployment/exampleserver -n default
  • Expose Jupiter-Layout Deployment
kubectl port-forward deployments/exampleserver 9527:9527 9528:9528 9529:9529 -n default

Test

  • HTTP
curl "http://localhost:9527/v1/helloworld.Greeter/SayHello/bob"
{"error":0,"msg":"","data":{"name":"hello bob","ageNumber":0,"sex":0,"metadata":null}}
  • GRPC
buf curl --schema api --protocol grpc --http2-prior-knowledge --data '{"name":"bob"}' http://localhost:9528/helloworld.v1.GreeterService/SayHello
{"data":{"name":"hello bob"}}

DEVELOPER Guide

Bugs and Feedback

For bug report, questions and discussions please submit an issue.

Contributing

Contributions are always welcomed!

You can start with the issues labeled with good first issue.

Contact

jupiter-layout's People

Contributors

b15030328 avatar denisyin66 avatar dependabot[bot] avatar linthan avatar papa-hexuan avatar sysulq avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

jupiter-layout's Issues

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.