good progress with server and client back and forth

- getting there slowly with console logs and understanding the steps along the way
This commit is contained in:
talksik
2022-04-28 08:51:34 -05:00
parent f38436ae0c
commit 44ee03c9e5
6 changed files with 436 additions and 20 deletions
+6 -1
View File
@@ -6,6 +6,7 @@ import { UserService } from "./services/user.service";
import { UserStatus } from "@nirvana/core/models";
import cors from "cors";
import getConversationRoutes from "./routes/conversation";
import getRtcRoutes from "./routes/rtc";
import getSearchRoutes from "./routes/search";
import getUserRoutes from "./routes/user";
@@ -23,12 +24,16 @@ app.get("/", (req: Request, res: Response) => {
res.send("hello world.");
});
app.use("/api/rtc", getRtcRoutes());
app.use("/api/user", getUserRoutes());
app.use("/api/search", getSearchRoutes());
app.use("/api/conversations", getConversationRoutes());
const PORT = 5000;
var server = app.listen(PORT, () => console.log("express running"));
var server = app.listen(PORT, () =>
console.log(`express running on port ${PORT}`)
);
// socket IO stuff