ffffng/REFACTOR.md

30 lines
782 B
Markdown
Raw Normal View History

2020-04-08 00:36:15 +02:00
# Refactoring ideas
## TODO:
* Test email rendering!
2020-04-08 00:36:15 +02:00
## Short term
* Integrate typescript in the build and start migrating the server code.
* Find a nice way to integrate typescript with grunt.
* Replace logging framework.
* Bluebird for promises?
2020-04-08 00:36:15 +02:00
## Mid term
* Typesafe db queries.
2020-04-08 00:36:15 +02:00
* Port complete server to typescript.
* Port the server code to promises and `async` / `await`.
* Use ES6 style imports instead of `require`.
* Store node data in database and export it for gateways.
* Write tests (especially testing quirky node data).
* Allow terminating running tasks via bluebirds cancellation.
2020-04-08 00:36:15 +02:00
## Long term
* Rewrite the admin interface (used lib is unmaintained).
* Rewrite the client in typescript (+ vue?).
* Replace the grunt build system.
* Decentralize node data.