Giter Club home page Giter Club logo

enchien / michael-angular-go-grpc-example Goto Github PK

View Code? Open in Web Editor NEW

This project forked from tpps88206/michael-angular-go-grpc-example

0.0 0.0 0.0 3.12 MB

The example of gRPC project with Angular and Go

Home Page: https://medium.com/micheh/%E7%B5%90%E5%90%88-grpc-%E5%9C%A8-angular-%E8%88%87-go-%E4%B9%8B%E4%B8%AD-%E4%BD%BF%E7%94%A8-docker-%E5%AF%A6%E4%BD%9C-d682d756319

License: MIT License

Shell 1.01% JavaScript 53.68% Go 4.98% TypeScript 34.96% CSS 0.33% HTML 1.55% Dockerfile 3.49%

michael-angular-go-grpc-example's Introduction

angular-go-grpc-example

The example of gRPC project with Angular and Go.

Structure

Status

Build Status

Platform Image size Image version
Client
Server

Development using

  • Angular 8.0.0
  • Go 1.12
  • Protocol Buffers 3.7.1

Installation

Use Docker Compose to build client, server and proxy together.

docker-compose build

Usage

Run client, server and proxy together.

docker-compose up

Access path

Client site with Angular:

http://localhost:80/

Server site with Go:

http://localhost:50051/

Access the Envoy Proxy at:

http://localhost:8080/

Protocol Buffers

If you need to modify .proto files, you can go to ./proto and then you will need to compile them again.

cd proto
vim calc.proto

# After modify
cd ..
sh ./protoc.sh

Client development mode

The Docker Image will build client with production mode. If you need to use development mode.

cd ./client
npm start

And the client access path is

http://localhost:4200/

Testing endpoints

If you want to try your server endpoint without client and proxy.

cd ./server/test
go run main.go

Reference

michael-angular-go-grpc-example's People

Contributors

tpps88206 avatar dependabot[bot] avatar

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.