Skip to content

antdimot/gstore

Repository files navigation

GSTore

Abstract

There are a lot of contents that's need to be linked with a particular location. This service provides a set of rest api for storing contents using latitude and longitude, which makes easier to find them later.

Examples

Request for getting a valid access token by username and password.

curl -X POST --data "username=admin&password=P@ssw0rd" http://localhost:5010/api/v1.0/user/authenticate

Request for getting contents by latitude, longitude and distance (Km).

curl -X GET -H "Accept: application/json" -H "Authorization: Bearer ACCESS-TOKEN-HERE" "http://localhost:5010/api/v1.0/geodata/location?lon=-74.046689&lat=40.68924941&distance=0.1"

Building and running instructions

  1. git clone https://github.com/antdimot/gstore.git
  2. cd gstore
  3. docker-compose up -d
  4. check api doc at http://localhost:5010/api/v1/status/check

Useful information

The service uses JWT for securely transmitting information between parties, so that refer to appsettings.*.json files for update token_appkey with your. The gstore database is initialized by docker with contents of file data.js, which contains information for access and some contents.

About

A service for storing and retrieving data by latitude and longitude.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published