Skip to content

Commit

Permalink
Merge pull request #35 from Praashh/app/deployment
Browse files Browse the repository at this point in the history
fix: socket issue with esbuild
  • Loading branch information
Praashh authored Oct 8, 2024
2 parents 5acfc61 + 267b1a8 commit b78fcaa
Show file tree
Hide file tree
Showing 5 changed files with 29 additions and 115 deletions.
2 changes: 1 addition & 1 deletion apps/server/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
"express": "^4.21.0",
"jsonwebtoken": "^9.0.2",
"prisma": "^5.20.0",
"ws": "^8.18.0"
"ws": "^7.5.5"
},
"devDependencies": {
"esbuild": "0.24.0"
Expand Down
4 changes: 2 additions & 2 deletions apps/server/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import orderRouter from "./router/order";
import eventRouter from "./router/event";

import http from "http";
// import { setupwebsocket } from "./router/websockets";
import { setupwebsocket } from "./router/websockets";
import { updateOrderBook } from "./services/orderBookService";

const app = express();
Expand All @@ -16,7 +16,7 @@ app.use("/v1/order", orderRouter);
app.use("/v1/events", eventRouter);

const server = http.createServer(app);
// export const WebsocketServer = setupwebsocket(server);
export const WebsocketServer = setupwebsocket(server);
server.listen(3001, () => {
console.log(`Server is running on http://localhost:3001`);
});
Expand Down
134 changes: 22 additions & 112 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions packages/db/.env.example
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
DATABASE_URL=""
3 changes: 3 additions & 0 deletions packages/order-queue/.env.example
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
REDIS_HOST="localhost"
REDIS_PORT="6379"
REDIS_PASSWORD=""

0 comments on commit b78fcaa

Please sign in to comment.