GithubHelp home page GithubHelp logo

cagodoy / tenpo-restaurants-api Goto Github PK

View Code? Open in Web Editor NEW
0.0 2.0 0.0 23 KB

Microservice implemented in Golang that get nearby restaurants from Google Places API.

Dockerfile 9.07% Makefile 14.87% Go 76.06%

tenpo-restaurants-api's Introduction

Restaurants-API

Microservice implemented in Golang that get nearby restaurants from Google Places API.

GRPC Service

service RestaurantService {
  rpc ListByCoord(RestaurantListByCoordRequest) returns (RestaurantListByCoordResponse) {}
}

message Restaurant {
  string id = 1;
  string name = 2;
  string rating = 3;
  string address = 4;
  bool open = 5;
  string photo_reference = 6;
  Coord coord = 7;
}

message RestaurantListByCoordRequest {
  Coord coord = 1;
  string page_token = 2;
}

message MetaRestaurantListByCoord {
  string page_token = 1;
}

message RestaurantListByCoordResponse {
  repeated Restaurant data = 1;
  MetaRestaurantListByCoord meta = 2;
  Error error = 3;
}

Commands (Development)

make build: build restaurants service for osx.

make linux: build restaurants service for linux os.

make docker: build docker.

docker run -it -p 5030:5030 tenpo-restaurants-api: run docker.

PORT=<port> API_KEY=<api_key> make r: run tenpo restaurants service.

tenpo-restaurants-api's People

Watchers

 avatar  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.