/selection

Side hiring process test

Primary LanguageGoGNU General Public License v3.0GPL-3.0

Selection

Side hiring process test

CircleCI

Installation

OS X & Linux & Windows:

go get -u github.com/elojah/selection

Usage example

> docker-compose up # start containers
> make import # import test data into mongo
> curl -k X GET https://127.0.0.1:8080/task/scores?id=0E8dlOR1tqfg31jIR

API

/user #all users
/user?ids=eLCbLZMwPrWM24fZ9,fZueTmkoyeeM8hfgS #users by id
/task #all tasks
/task?ids=0R7p5AZpxMmffUU7k,0E8dlOR1tqfg31jIR #tasks by id
/task/scores?id=0R7p5AZpxMmffUU7k

TODO

  • Add tags to get task (API)
  • Batch users retrieve in scores calculation (Scorer)
  • Debug HTTPS Docker (API)
  • Add more routes (get all, get by id) (API)
  • Add errors.Wrap for error context