-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathapp.js
More file actions
17 lines (16 loc) · 686 Bytes
/
app.js
File metadata and controls
17 lines (16 loc) · 686 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
import { SocketIoServer } from "./api/socketIoServer.js";
import { ExpressServer } from "./api/expressServer.js";
import {StopsService} from "./services/stopsService.js";
import {TimetablesService} from "./services/timetablesService.js";
import {RoutesService} from "./services/routesService.js";
export const appServer = new ExpressServer();
export const stopsService = new StopsService();
stopsService.getStops();
export const routesService = new RoutesService();
routesService.getRoutes();
export const timetablesService = new TimetablesService();
timetablesService.getTimetable();
export const socketIoServer = new SocketIoServer(
appServer.server,
"http://localhost:3000/"
);