etherpad-lite/src/node
muxator 59a6f2e9b8 node8: get rid of node < 0.7 compatibility when deleting files.
- path.exists() is no longer part of nodejs
- fs.exists() is deprecated (as of nodejs >= 8)
- checking a file for existence before using it is open to raca condition. It is
  preferable to go ahead and use the file, and eventually handle the error
- we can afford two simple synchronous fs operations here
2019-02-19 22:01:12 +01:00
..
db db/Pad: reversed truthy condition to make core logic evident 2018-08-29 03:03:34 +02:00
eejs use latest ejs 2015-04-11 09:53:27 +01:00
handler node8: get rid of node < 0.7 compatibility when deleting files. 2019-02-19 22:01:12 +01:00
hooks windows: allow graceful shutdown on Windows, too 2019-02-16 00:14:39 +01:00
utils NodeVersion.js: do not use callbacks, simplify calling style in server.js 2019-02-19 00:46:37 +01:00
easysync_tests.js Revert "51c14d9947 changed the return value of" 2015-02-16 06:22:49 +01:00
padaccess.js Use the cookie parser middleware 2015-05-07 18:35:21 +01:00
README.md Fix typos 2019-01-16 11:14:04 +01:00
server.js node8: require nodejs >= 8.9.0, npm >= 6.4 2019-02-19 22:01:12 +01:00
stats.js node8: we no longer need to use a shim for Object.values in stats.js 2019-02-19 22:01:12 +01:00

About the folder structure

  • db - all modules that are accessing the data structure and are communicating directly to the database
  • handler - all modules that responds directly to requests/messages of the browser
  • utils - helper modules

Module name conventions

Module file names start with a capital letter and uses camelCase

Where does it start?

server.js is started directly