Add initial dev server

This commit is contained in:
2025-12-07 15:55:05 -08:00
parent b695437415
commit 48a044cbd5
6 changed files with 1830 additions and 1 deletions
+1485
View File
File diff suppressed because it is too large Load Diff
+20
View File
@@ -0,0 +1,20 @@
{
"name": "clementine-backend",
"version": "0.1.0",
"description": "",
"license": "ISC",
"author": "",
"type": "module",
"main": "index.ts",
"scripts": {
"dev": "tsx src/index.ts"
},
"dependencies": {
"express": "^5.2.1"
},
"devDependencies": {
"@types/express": "^5.0.6",
"tsx": "^4.21.0",
"typescript": "^5.9.3"
}
}
+14
View File
@@ -0,0 +1,14 @@
import express from 'express';
const app = express();
const PORT = 3001;
app.use(express.json());
app.get('/api/hello', (req, res) => {
res.json({ message: 'Hello World!' });
});
app.listen(PORT, () => {
console.log(`Server is running on http://localhost:${PORT}`);
});