Google Places Microservice.
Created to avoid issue with CORS, which appears with axios in VueJS Apps.
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
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
}
Project released under the terms of the MIT license.