Geolocation microservice

Installation

  1. create mongodb database and collection with name geometries
  2. create 2dspheree index with field location, you can run this command on mongo db.collection.createIndex( { "location" : "2dsphere" } )
  3. clone this repo
  4. cd to this project then run npm install
  5. config mongodb url at config/database
  • url: mongodb://username:password@localhost:27017/my_database
  • dbName: my_database
  1. config host/port at line 6 of api/swagger/swagger.yaml
  2. run npm start then open swagger url localhost:8888/docs