Given a set of P feature points in the bidimensional plane, determine every line that contains at least N or more COLLINEAR points.
Node.js and npm installed
In the root of the project run:
$ npm install
In the root of the project run:
$ node index
The server will be reachable at
http://localhost:3000
Retrieve all the points (Array)
http://localhost:3000/space
Retrieve all the lines with minimum length N (Array)
http://localhost:3000/lines/{n}
Post a JSON points -> Returns posted points
The server expects a valid JSON as input
http://localhost:3000/point
Delete all the points -> returns the empty space
http://localhost:3000/space