Граф коммитов

507 Коммитов

Автор SHA1 Сообщение Дата
Christopher Van db1e039026 add a `.jshintrc` 2015-01-05 16:02:01 -08:00
Chris Van 9fe0d35ab7 change `alt`+`title` text for logo in README 2015-01-05 15:48:52 -08:00
Chris Van 79cea3098c Merge pull request #314 from cvan/sup-gulp
suppress gulp standard output when running tests
2015-01-05 15:47:45 -08:00
Christopher Van 0109a753ec suppress gulp standard output when running tests 2015-01-05 15:21:19 -08:00
Chris Van 48005bf7e8 Merge pull request #313 from mozilla/hapi
use hapi as the new framework, add postgres, revamp testing
2015-01-02 20:38:27 -08:00
Christopher Van 5de8d8786b add gulp tasks for DB operations (issue #311); swap DB when running tests (issue #312) 2015-01-02 20:34:19 -08:00
Christopher Van 8c67a1edde show all hapi validation errors in error responses 2014-12-22 15:52:42 -08:00
Christopher Van 6bb0b10938 fix grammar in `utils.errors` unit test 2014-12-22 14:07:58 -08:00
Christopher Van 2727f243e1 change `npm run-script` to `npm run` in `README` 2014-12-22 14:07:02 -08:00
Christopher Van d2c94c6e2f add tests for `lib.utils.returnError` (issue #309) 2014-12-19 17:28:56 -08:00
Christopher Van 177f060bf8 add tests for `lib.utils.errors` (issue #309) 2014-12-19 17:28:56 -08:00
Christopher Van cbc5342093 add tests for `lib.utils.promisify` (issue #309) 2014-12-19 17:28:56 -08:00
Christopher Van 21a9116d48 add tests for `lib.utils.stringifyObject` (issue #309) 2014-12-19 17:28:56 -08:00
Christopher Van 160b444e2d add `lab` for unit testing; add tests for `lib.utils.isStringAnInt` (issue #309) 2014-12-19 17:28:56 -08:00
Christopher Van 5b4a9d61b5 redirect to resource after a `POST /games` (fixes #303) 2014-12-19 17:28:56 -08:00
Christopher Van 60ef5ec665 redirect upon changing a slug after a `PUT /games/{idOrSlug}` (fixes #304) 2014-12-19 17:28:56 -08:00
Christopher Van f1c65736c6 implement `PUT /games/{gameIdOrSlug}` in hapi (fixes #264) 2014-12-19 17:28:56 -08:00
Christopher Van 29417ce9c6 add comment for sample usage of `DELETE /games/{gameIdOrSlug}` (issue #262) 2014-12-19 17:28:56 -08:00
Christopher Van 5a5a96654c sanitise rows as objects in hapi game API responses (fixes #295) 2014-12-19 17:28:56 -08:00
Christopher Van bc0b71fc0e game controllers: simplify arguments and remove unused `utils` 2014-12-19 17:28:56 -08:00
Christopher Van 492e25a99c implement `DELETE /games/{idOrSlug}` in hapi; exclude soft-deleted games (fixes #262; fixes #293) 2014-12-19 17:28:55 -08:00
Christopher Van 6964ba2a8f add `GET /games` hapi controller (fixes #261) 2014-12-19 17:28:55 -08:00
Christopher Van 3d7ef5ec41 use `Boom.internal` when preparing error response for `DatabaseError` 2014-12-19 17:28:55 -08:00
Christopher Van 946cc3db24 abstract out DB calls in `POST /games` controller (fixes #265) 2014-12-19 17:28:55 -08:00
Christopher Van 590a66ffc1 add comments of sample usage for existing game API endpoints (fixes #285) 2014-12-19 17:28:55 -08:00
Christopher Van 2484f86d31 ensure DB errors are properly caught and internal errors are caught+logged but not shown in responses (fixes #259) 2014-12-19 17:28:55 -08:00
Christopher Van 6c9b63a4b0 reorder columns in `games` table 2014-12-19 17:28:55 -08:00
Christopher Van fabac447c2 use boom to surface hapi API errors 2014-12-19 17:28:55 -08:00
Christopher Van 1b167f9fb6 use promises for hapi API game endpoints 2014-12-19 17:28:55 -08:00
Christopher Van b5fb650ff5 send 404 when game not found 2014-12-19 17:28:55 -08:00
Christopher Van 78b18efc8e use `hapi-node-postgres`, postgres migrations, queries; add basic create/get game hapi endpoints (issue #215; issue #296, issue #297) 2014-12-19 17:28:55 -08:00
Christopher Van e29996484b remove `lib.utils.extend` 2014-12-19 17:28:54 -08:00
Christopher Van c0ba28e2c5 use hapi-pg for maintaining postgres connections 2014-12-19 17:28:54 -08:00
Christopher Van d21c6cff88 replace koa with hapi (#245) 2014-12-19 17:28:54 -08:00
Chris Van 44e9ba0ff9 fix typo in `gameKeys.description` comment 2014-12-10 16:56:39 -08:00
Chris Van 0e80d25487 Merge pull request #249 from AdrianGaudebert/235-catch-malformed-json
Fixes #235 - Return a proper error message when JSON payload is malformed.
2014-11-25 16:26:29 -08:00
Chris Van 2eca7b2d65 Merge pull request #250 from AdrianGaudebert/working-unit-tests
Working games and etc unit tests.
2014-11-25 16:26:17 -08:00
Chris Van 6b1ee1d117 add Travis CI Build Status badge to README (issue #234) 2014-11-25 16:22:43 -08:00
Chris Van f8893734ef Merge pull request #251 from robhudson/travis
Add Travis config
2014-11-25 15:52:33 -08:00
Rob Hudson ac0b69f625 Add Travis config 2014-11-25 15:36:26 -08:00
Adrian Gaudebert 6fcfdc7f05 Working games and etc unit tests. 2014-10-24 20:03:56 +09:00
Adrian Gaudebert 448c737e23 Fixes #235 - Return a proper error message when JSON payload is malformed. 2014-10-17 17:06:46 +09:00
Christopher Van 81538f982f add disclaimer 2014-10-01 18:01:40 -07:00
Christopher Van 76d32c20ce Merge pull request #248 from AdrianGaudebert/readme-new-install
Fixed a few issues with the README file.
2014-09-24 22:42:37 +02:00
Adrian Gaudebert e3db9a801d Fixed a few issues with the README file. 2014-09-23 12:35:59 +09:00
Christopher Van 4fa9ec45e3 api docs: fix /game -> /games (fixes #238) 2014-09-08 08:37:52 +02:00
Christopher Van c4e96eaf75 API docs: fix "boards" to "leaderboards" in leaderboard API URLs 2014-09-06 03:11:43 +02:00
Christopher Van 6f00639214 mention galaxy.js in README 2014-09-05 17:22:10 -07:00
Christopher Van f9901386ed fix typo in game schema 2014-09-05 17:18:08 -07:00
Christopher Van c8b8a2da48 API docs: update Current Version and Schema 2014-09-04 23:55:10 +02:00