Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/chetansurwade/geoip2-rest-api-golang
GeoIP2 rest api in golang (Gin) just fork and docker-compose up
https://github.com/chetansurwade/geoip2-rest-api-golang
docker docker-compose geoip geoip2 geolite2-city gin gin-gonic golang
Last synced: 3 months ago
JSON representation
GeoIP2 rest api in golang (Gin) just fork and docker-compose up
- Host: GitHub
- URL: https://github.com/chetansurwade/geoip2-rest-api-golang
- Owner: chetansurwade
- Created: 2018-12-29T16:58:47.000Z (about 6 years ago)
- Default Branch: master
- Last Pushed: 2020-05-02T14:51:30.000Z (over 4 years ago)
- Last Synced: 2024-10-01T09:06:19.631Z (3 months ago)
- Topics: docker, docker-compose, geoip, geoip2, geolite2-city, gin, gin-gonic, golang
- Language: Go
- Size: 27 MB
- Stars: 5
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# geoip2 rest api golang geoip2 api geoip2 golang
GeoIP2 rest api in golang (Gin) just clone and docker-compose up and star it if you like the work.## To get started :
1. clone the repository
2. prerequisites - docker and docker-compose or go 1.10 or later installed
3. easy way to get up and running is :
`docker-compose up -d --build`
or
`go build main.go`
and run the executable
## Usage:
-> http://localhost:8080/geoip?ip=113.193.190.207
-> http://localhost:8080/geoip?ip=113.193.190.207&ip=2607:f238:2::5