There are some rather big files like server.ts that should be split up in smaller logical parts.
server.ts