Commit Graph

67 Commits

Author SHA1 Message Date
Blade Barringer
b97511db31 fix: Use module.exports instead of export default 2016-03-04 13:29:51 -06:00
Blade Barringer
99242ac60f fix: remove dependency that was causing build to fail 2016-03-03 22:24:55 -06:00
Matteo Pagliazzi
d85c64705e Merge branch 'develop' into api-v3 2016-03-03 21:15:16 +01:00
Sabe Jones
af38e83e36 fix(logging): don't log without env var 2016-03-02 11:30:49 -05:00
Sabe Jones
c761944c35 feat(logging): timestamp active handles output 2016-03-02 10:22:46 -05:00
Sabe Jones
a698559c04 fix(log-handles): don't log verbose code 2016-03-01 16:46:39 -05:00
Sabe Jones
bff5258a56 fix(logging): get interval from env var 2016-03-01 16:46:39 -05:00
Sabe Jones
078100aac8 chore(logging): output active handles per 10 minutes 2016-03-01 16:46:38 -05:00
Matteo Pagliazzi
531d3969f4 fix cluster.fork 2016-03-01 09:15:13 +01:00
Matteo Pagliazzi
d3e1a415a8 require newrelic as the first thing on startup 2016-02-21 22:39:55 +01:00
Matteo Pagliazzi
f4d66c7384 config newrelic 2016-02-21 22:30:25 +01:00
Matteo Pagliazzi
cc31d266e4 port locals middleware, add some tests and a lot of fixes 2016-02-19 18:42:03 +01:00
Matteo Pagliazzi
9b09848655 revert change to static files testing 2016-01-30 19:42:09 +01:00
Matteo Pagliazzi
6851a39dec test no-cache instead of max-age=0 2016-01-30 19:24:56 +01:00
Matteo Pagliazzi
afbfbdd01c fix mongoose promise, some user validation, tests urls 2015-11-21 14:27:24 +01:00
Matteo Pagliazzi
65a8d2e255 misc fixes and improvements, starts adding route tests 2015-11-18 12:36:13 +01:00
Matteo Pagliazzi
9905deec06 move static handler to separate middleware 2015-11-17 17:02:53 +01:00
Matteo Pagliazzi
aa1b046cf2 add example apidoc comments, add notFound middleware 2015-11-17 16:48:50 +01:00
Matteo Pagliazzi
83eb2308fb Merge pull request #6232 from HabitRPG/api-v3-utils
[API v3] Port Utils
2015-11-15 20:01:48 +01:00
Matteo Pagliazzi
1ccb9a5aaa move ported middlewares to /api-v2 2015-11-15 18:15:06 +01:00
Matteo Pagliazzi
5dc2fb0b6f port domainMiddleware 2015-11-15 18:12:55 +01:00
Blade Barringer
a127bb8711 Switch to babel-core form babel.
Babel includes the CLI, which we don't need.
2015-11-15 08:59:57 -06:00
Blade Barringer
ddeb0e7b23 Add babel register in the server file 2015-11-15 08:16:11 -06:00
Matteo Pagliazzi
170a25c712 remove v2 utils where possible 2015-11-14 17:43:56 +01:00
Matteo Pagliazzi
b315d10c79 migrate utils to v3, uprade nodemailer 2015-11-14 17:43:56 +01:00
Matteo Pagliazzi
cf4eb7c89b Merge pull request #6237 from HabitRPG/api-v3-firebase
port firebase lib to api v3
2015-11-14 13:14:50 +01:00
Matteo Pagliazzi
d89b1cb60d port firebase lib to api v3 2015-11-14 02:50:58 +01:00
Blade Barringer
49a6a7167b Merge branch 'api-v3' into api-v3-i18n 2015-11-13 10:49:21 -06:00
Matteo Pagliazzi
79c20105a1 use new logger where possible 2015-11-13 15:16:00 +01:00
Matteo Pagliazzi
de21b72027 move old i18n version to api-v2 folder and use new i18n where possible 2015-11-12 16:43:02 +01:00
Blade Barringer
858bf99930 Move old logging lib v2 directory 2015-11-12 08:18:23 -06:00
Blade Barringer
9408effb4e Remove coffeescript dependency from website 2015-11-11 20:32:16 -06:00
Matteo Pagliazzi
249037b80f upgrade some deps, and remove unused qs module 2015-11-11 12:12:44 +01:00
Matteo Pagliazzi
8864508482 rewrite server.js in es6 2015-11-11 11:58:15 +01:00
Blade Barringer
447d4c332d Remove extraneous nconf setup. 2015-11-08 08:56:27 -06:00
Matteo Pagliazzi
f26737ab79 use q for mongoose promises and switch to promises from callbacks in queries 2015-11-07 16:28:52 +01:00
Matteo Pagliazzi
0834f8eeea disable api v2 and related tests to enable changes to models 2015-11-07 15:51:26 +01:00
Blade Barringer
2f6f0eb933 Add Babel require hook 2015-11-04 20:46:37 -06:00
Blade Barringer
a4f12f06f4 Remove extraneous white space 2015-11-04 20:46:23 -06:00
Matteo Pagliazzi
4322b8c3dc wip api-v3: add error handler middleware and custom error classes 2015-11-04 18:26:38 +01:00
Matteo Pagliazzi
b21df9edb3 use node 4, npm 3, mongoose 4 and express 4 2015-11-04 18:26:38 +01:00
Matteo Pagliazzi
ed0e4c6d20 Reorganize files under /src, separate express app in two apps, one for api v1 and v2 and the other \
for the upcoming api v3

Reorganize files under /src, separate express app in two apps, one for api v1 and v2 and the other for the upcoming api v3

move api v2 routes in a separate folder, rename apiv1 file for better readability, remove auth routes for api v1

move api-v2 controllers in subdirectory

move unorganized files to /libs

fix gulp requires and separate server in old (api v1 and v2) and new (api v3) app

fix require paths

fix require paths

fix require paths

put api v1 back

Reorganize files under /src and separate express app in one for api v1 and v2 and the other for v3
2015-11-02 17:43:32 +01:00
Matteo Pagliazzi
0131ba3e45 reert all the deps upgrades 2015-10-30 14:16:35 +01:00
Matteo Pagliazzi
92fc2683c6 fix(cluster): use for loop instead of _.times 2015-10-29 16:04:30 +01:00
Matteo Pagliazzi
f9ab04e4f9 upgrade to express 4.x
cleanup package.json

put errorHandler middleware as the last one

use accepts module instead of req.acceptedLanguages

use normal object notation as it is supported is es5

remove deprecations from auth controller

remove deprecations from groups controller

Revert "remove deprecations from groups controller"

This reverts commit 7cf36295ebbc50c1f2b210a8ab447d7f2c41dba9.

Revert "remove deprecations from auth controller"

This reverts commit deecd701e0551862ba53ea894f2d87a746384fed.

request limit upped to 1mb and 10k chars for query parameters

Upgrade to Express 4.x
2015-10-29 15:59:45 +01:00
Blade Barringer
2cc4d65d78 Allow disabling logger in non-prod for testing 2015-10-08 22:42:09 -05:00
Blade Barringer
2683b2b0a0 Use var to declare mongoose 2015-10-03 20:55:28 -05:00
Matteo Pagliazzi
37ae48891c wip: firebase 2015-09-05 15:44:45 +02:00
Matteo Pagliazzi
47f6f2febe refactor middlewares in their own folder, move buildFiles to libs/buildFiles 2015-08-14 11:50:09 +02:00
Kevin Gisi
cfdcadb2bc Added redirects to habitica for non-API urls 2015-07-30 13:20:24 -04:00