Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

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

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