Skip to content
Snippets Groups Projects
Commit 24dd74e1 authored by Jesus Galaz's avatar Jesus Galaz
Browse files

Adding server.js template file

parent 7a5a62b6
No related merge requests found
Pipeline #15497 passed
const express = require('express');
const app = express();
// Basic route for testing
app.get('/', (req, res) => {
res.send('Server is running!');
});
// Start the server
const PORT = process.env.PORT || 3000;
app.listen(PORT, () => {
console.log(`Server is running on port ${PORT}`);
});
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment