Skip to content

Latest commit

 

History

History
51 lines (34 loc) · 845 Bytes

README.md

File metadata and controls

51 lines (34 loc) · 845 Bytes

Ratings

Google Places Microservice.

Created to avoid issue with CORS, which appears with axios in VueJS Apps.

Development

Start redis server with docker

$> docker run --name redis -p 6379:6379 -d redis

Compile source code

$> go build -o main src/*.go

Run server

$> ./main

Usage

Build and deploy using docker image.

Parameter Type Description
key String GoogleMaps API Key
placeid String GoogleMaps API Place ID

Example with httppie.

$> http http://localhost:8080 key==<key> placeid==<placeid>
{
    "rating": 4.5
}

License

Project released under the terms of the MIT license.