Prism-Notes migration: copy scaffold, update package metadata, add npm-based deps, switch startup to Bun.serve with custom logs, and ignore env/deps via .gitignore

This commit is contained in:
Golwhit
2025-12-29 17:57:48 -06:00
parent a8ba47d38e
commit fd54345674
3 changed files with 22 additions and 4 deletions
+14
View File
@@ -0,0 +1,14 @@
# Dependencies
/node_modules/
# Environment
.env
# OS/editor noise
.DS_Store
Thumbs.db
*.log
# Bun/NPM cache artifacts
bun.lock
npm-debug.log*
+7 -3
View File
@@ -127,9 +127,13 @@ app.get('/', async (c) => {
}); });
const PORT = Number(process.env.PORT || 5500); const PORT = Number(process.env.PORT || 5500);
console.log(`PBandGraph server running at http://localhost:${PORT}`);
export default { // Start Bun server manually to avoid Bun's auto startup banner
const server = Bun.serve({
port: PORT, port: PORT,
fetch: app.fetch, fetch: app.fetch,
}; });
// Custom startup notes
console.log(`Prism Notes server running at http://localhost:${PORT}`);
console.log('Prism Notes API ready (health: /health)');
+1 -1
View File
@@ -4,7 +4,7 @@
"module": "ESNext", "module": "ESNext",
"lib": ["ESNext", "DOM", "DOM.Iterable"], "lib": ["ESNext", "DOM", "DOM.Iterable"],
"types": ["bun-types", "node", "bun"], "types": ["bun-types", "node", "bun"],
"moduleResolution": "bundler", "moduleResolution": "node",
"allowImportingTsExtensions": true, "allowImportingTsExtensions": true,
"moduleDetection": "force", "moduleDetection": "force",
"noEmit": true, "noEmit": true,