Skip to content
This repository has been archived by the owner on Jul 3, 2024. It is now read-only.
/ gobridge Public archive
forked from andrewwormald/gobridge

GoBridge is a client code generation for HTTP in situations where gRPC is not desired. Currently Angular (typescipt) is only supported client application.

License

Notifications You must be signed in to change notification settings

luno/gobridge

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

36 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

gobridge

alt text

What is GoBridge

GoBridge is a client code generation for HTTP in situations where gRPC is not desired. Currently Angular (TypeScript) is only supported client application.

Tutorial:

1. Clone the repo or copy the binary directly from ./bin/

git clone https://github.com/luno/gobridge.git

2. Run & have fun!

go run main.go --api="./example/backend" --mod="github.com/luno/gobridge" --ts="./example/frontend/services/example.ts" --ts_service="Example" --server="./example/backend/server/server_gen.go"

4. It will take declarations like this:

alt text

GoBridge will output this for Angular (TypeScript)

alt text

GoBridge will output this as the server side implementation

alt text

About

GoBridge is a client code generation for HTTP in situations where gRPC is not desired. Currently Angular (typescipt) is only supported client application.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Go 95.1%
  • TypeScript 4.9%