Geolocation Microservice in Flamingo (www.flamingo.me)
Simple Geolocationing Microservice in Flamingo with a base set of providers (prone to changes, currently IpData, IpInfo, IPSTack und Maxmind)
- Install Go
- Obtain API Key from the respective provider and edit the config/config.yml accordingly. Don't forget to deactivate unwanted providers there or you will get errors. The result will be a collection of active provider responses.
- fire up
go run main.go serve
ormake serve
- Its running, should be reachable at
http://localhost:3322/geolocation/[insert IP Address here]
You will need Golang in version 1.12.1 installed.
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.
Use the following to run the tests:
go test ./... -v
or use the make target
make test
Also, use a make target :-)
make build
or, if you need a linux amd64 binary, use
make build-linux
- Flamingo - Scalable frontend framework for your headless microservice architecture
- Jens Sadowski - Initial work - resubaka
- Julien Wiedner - Initial work - juce93
- Joachim Adomeit - Initial work - jadhub
This project is licensed under the Open Software License v. 3.0 (OSL-3.0) - see the LICENSE file for details