Page Menu
Home
DevCentral
Search
Configure Global Search
Log In
Files
F3769153
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
1 KB
Referenced Files
None
Subscribers
None
View Options
diff --git a/backend/servpulse-backend/app.js b/backend/servpulse-backend/app.js
index 0da5394..9abd94c 100644
--- a/backend/servpulse-backend/app.js
+++ b/backend/servpulse-backend/app.js
@@ -1,23 +1,30 @@
-// app.js
+// -------------------------------------------------------------
+// ServPulse :: app
+// - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
+// Project: Nasqueron
+// Description: Bootstrap the application
+// License: BSD-2-Clause
+// -------------------------------------------------------------
+
require('dotenv').config(); // Set up .env file
require('./config/database.js'); // Set up database connection
const express = require('express');
const app = express();
// Middleware to parse JSON requests
app.use(express.json());
// Import routes
const serviceRoutes = require('./routes/serviceRoutes.js');
const incidentRoutes = require('./routes/incidentRoutes.js');
// Use the routes
app.use('/api', serviceRoutes);
app.use('/api', incidentRoutes);
// Start the server
const PORT = process.env.EXPRESS_PORT || 3000;
app.listen(PORT, () => {
console.log(`Server running on port ${PORT}`);
});
File Metadata
Details
Attached
Mime Type
text/x-diff
Expires
Mon, Nov 25, 13:16 (1 d, 10 h)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
2260231
Default Alt Text
(1 KB)
Attached To
Mode
rSP ServPulse
Attached
Detach File
Event Timeline
Log In to Comment