Skip to content

Commit 459c97a

Browse files
committed
add core functionalities
1 parent 749dd17 commit 459c97a

File tree

12 files changed

+2141
-106
lines changed

12 files changed

+2141
-106
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -128,3 +128,4 @@ dist
128128
.yarn/build-state.yml
129129
.yarn/install-state.gz
130130
.pnp.*
131+
cache/

index.js

Lines changed: 0 additions & 52 deletions
This file was deleted.

index.ts

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
import "dotenv/config";
2+
import { handleUplinks } from "./src/mqtt";
3+
import express, { Express, Request, Response } from "express";
4+
5+
const app: Express = express();
6+
const port = process.env.PORT || 3000;
7+
8+
handleUplinks();
9+
10+
app.get("/", (req: Request, res: Response) => {
11+
res.send("Express + TypeScript Server");
12+
});
13+
14+
app.listen(port, () => {
15+
console.log(`[server]: Server is running at http://localhost:${port}`);
16+
});

0 commit comments

Comments
 (0)