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