feat: added moisture checker

This commit is contained in:
Elias Renman
2023-05-21 16:33:44 +02:00
parent bb9407c2fa
commit 028e825541
20 changed files with 454 additions and 756 deletions

View File

@@ -0,0 +1,13 @@
import { Server } from "socket.io";
import { registerSockets } from "./sockets";
import { registerCronjobs } from "./cron";
export async function startServer() {
const port = 3000 || process.env.HTTP_PORT;
const io = new Server({});
registerSockets(io);
registerCronjobs();
io.listen(port);
}