Skip to content

ResuBaka/geolocator-microservice-flamingo

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

57 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Geolocation Microservice in Flamingo (www.flamingo.me)

Simple Geolocationing Microservice in Flamingo with a base set of providers (prone to changes, currently www.ipstack.com)

Getting Started

  • Install Go
  • Obtain API Key from www.ipstack.com and edit the config/config.yml accordingly
  • fire up go run main.go serve or make serve
  • Its running, should be reachable at http://localhost:3322/geolocation/[insert IP Address here]

Prerequisites

You will need Golang in version 1.12.1 installed.

Configuration

The config/config.yml contains a provider configuration with api key and url (provider specific), which could grow by supported providers in the future. New Providers have to implement the LocationProvider interface to work.

Test Pipeline

Test Pipeline

Running the tests

Use the following to run the tests:

go test ./... -v

or use the make target

make test

Building the Binary

Also, use a make target :-)

make build

or, if you need a linux amd64 binary, use

make build-linux

Built With

  • Flamingo - Scalable frontend framework for your headless microservice architecture

Authors

  • Jens Sadowski - Initial work - resubaka
  • Julien Wiedner - Initial work - juce93
  • Joachim Adomeit - Initial work - jadhub

License

This project is licensed under the Open Software License v. 3.0 (OSL-3.0) - see the LICENSE file for details

About

Geolocation Microservice in Flamingo (www.flamingo.me)

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Go 95.1%
  • Makefile 4.1%
  • Dockerfile 0.8%