✨ Add express backend server
This commit is contained in:
11
server/index.js
Normal file
11
server/index.js
Normal file
@ -0,0 +1,11 @@
|
||||
import express from "express";
|
||||
const app = express();
|
||||
const port = process.send.PORT || 3000;
|
||||
|
||||
app.get("/", (req, res) => {
|
||||
res.send("Hello World!");
|
||||
});
|
||||
|
||||
app.listen(port, () => {
|
||||
console.log(`Server listening on http://localhost:${port}`);
|
||||
});
|
Reference in New Issue
Block a user