GithubHelp home page GithubHelp logo

patxi1980 / wishlist Goto Github PK

View Code? Open in Web Editor NEW

This project forked from friendsofgo/wishlist

0.0 1.0 0.0 63 KB

A simple project to show how to do a good architecture using gRPC and Protocol Buffers

Go 95.26% Makefile 4.74%

wishlist's Introduction

WishList

A simple project to show how to do a good architecture using gRPC and Protocol Buffers

Application

The application simulate a simple wish list, we can create a list and add/modify/remove items to your wish list and we'll can export your wish list to csv, to import for example to google spreadsheet.

Model

                                          Item
                                  ┌───────────────────┐ 
         WishList                 │ ID                │
  ┌───────────────────┐           │ WishListID        │ 
  │ ID                │           │ Name              │ 
  │ Name              │<---───────│ Link              │ 
  │ Status            │           │ Price             │ 
  └───────────────────┘           │ Priority          │ 
                                  │ Status            │  
                                  └───────────────────┘

Run the application

To compile our proto files on Go, first of all, we must have installed the plugin to the protocol buffer compiler

$ go get -u github.com/golang/protobuf/protoc-gen-go

And obviously the tool to compile our files, protoc

And then we could compile our files

protoc -I proto --go_out=plugins=grpc:internal/net/grpc proto/*.proto

or using our Makefile

make gen-proto

TODOs

  • Improve README.md with more info (usage, etc)
  • Add unit & e2e testing
  • Add more features (use cases)
  • Do an extensive code review (and suggest code improvements)
  • Implement a real storage
  • Apply gRPC best practises
  • Improve error handling on gRPC layer
  • Add missing GoDoc comments
  • Use gateway to expose an HTTP API
  • Use middlewares for observability
  • Evaluate if id must be provided from outside

wishlist's People

Contributors

joanlopez avatar aperezg avatar

Watchers

James Cloos 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.