Skip to content
forked from antdimot/gstore

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

License

Notifications You must be signed in to change notification settings

aliqaryan/gstore

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

94 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

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:5000/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:5000/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/src/app
  3. docker-compose up -d
  4. check api doc at http://localhost:5000/api/swagger

Another way for testing GSTore is by using PWD, which is a simple, interactive and playground docker environment.

Try in PWD

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.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • C# 94.7%
  • JavaScript 3.8%
  • Dockerfile 1.5%