/viva-spot

Primary LanguageJavaScript

Viva Challenge

The Challenge

The legend: Spotippo

Doc

  • Run the project
  • Access: /docs

Endpoints

  • Create a property: /v1/properties [POST]
  • Get a property by Id: /v1/properties/{id} [GET]
  • Search a property by coordinates: /v1/properties?ax={integer}&ay={integer}&bx={integer}&by={integer} [GET]

Running

Configure MongoDb connection

$ cd viva-challenge
$ npm install
$ npm start

Testing

$ cd viva-challenge
$ npm test

Dependencies

  • NodeJs
  • MongoDb

Next Features

  • Implement Auth with JWT on creating properties
  • Implement logs
  • Improve tests (mocks)
  • Docker
  • Implement cache