Skip to content

palestine-nights/places

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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.