overleaf/services/chat
Jakob Ackermann 4080784310 [misc] simplify mongodb collection access using a shared db construct
Resolve the getCollection Promises once and store the result in a shared
 `db` object which can get imported by all the call-sites.

The http server is starting only after a Promise of `waitForDb()`
 resolves. This covers the app code and the acceptance tests:
REF: 586706a9439c3591fc9613dc877f055096ca073a
REF: d026569d2eb4123e30c771a55a001b42d5ade72f
2020-09-10 10:08:30 +01:00
..
.github [misc] bump the dev-env to 3.3.2 2020-08-10 17:01:11 +01:00
app/js [misc] simplify mongodb collection access using a shared db construct 2020-09-10 10:08:30 +01:00
config [misc] bump the dev-env to 3.3.2 2020-08-10 17:01:11 +01:00
test/acceptance/js [misc] wait for the mongo connection before starting acceptance tests 2020-09-10 10:08:23 +01:00
.dockerignore
.eslintrc [misc] bump the dev-env to 3.3.2 2020-08-10 17:01:11 +01:00
.gitignore [misc] bump the dev-env to 3.3.2 2020-08-10 17:01:11 +01:00
.nvmrc
.prettierrc [misc] bump the dev-env to 3.3.2 2020-08-10 17:01:11 +01:00
app.js [misc] simplify the naming around waiting for a mongo connection 2020-08-24 17:41:03 +01:00
buildscript.txt [misc] bump the dev-env to 3.3.2 2020-08-10 17:01:11 +01:00
docker-compose.ci.yml [misc] bump the dev-env to 3.3.2 2020-08-10 17:01:11 +01:00
docker-compose.yml [misc] bump the dev-env to 3.3.2 2020-08-10 17:01:11 +01:00
Dockerfile [misc] bump the dev-env to 3.3.2 2020-08-10 17:01:11 +01:00
LICENSE
Makefile [misc] bump the dev-env to 3.3.2 2020-08-10 17:01:11 +01:00
nodemon.json [misc] bump the dev-env to 3.3.2 2020-08-10 17:01:11 +01:00
package-lock.json upgrade from metrics-sharelatex to @overleaf/metrics 2020-09-09 10:37:56 +01:00
package.json upgrade from metrics-sharelatex to @overleaf/metrics 2020-09-09 10:37:56 +01:00
README.md

overleaf/chat

The backend API that powers the chat service in ShareLaTeX

License

The code in this repository is released under the GNU AFFERO GENERAL PUBLIC LICENSE, version 3. A copy can be found in the LICENSE file.

Copyright (c) Overleaf, 2014-2019.