Skip to content

Commit

Permalink
Update app.js
Browse files Browse the repository at this point in the history
Signed-off-by: Bubbles The Dev <152947339+KernFerm@users.noreply.github.com>
  • Loading branch information
KernFerm authored Nov 11, 2024
1 parent d88d57f commit 6e44b5a
Showing 1 changed file with 9 additions and 9 deletions.
18 changes: 9 additions & 9 deletions app.js
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
const http = require('http');
const port = 3000;
// app.js
const express = require('express');
const app = express();
const port = 9090;

const requestHandler = (req, res) => {
res.end('Hello, World from Docker!');
};

const server = http.createServer(requestHandler);
app.get('/', (req, res) => {
res.send('Hello, World! from bubblesthedev');
});

server.listen(port, () => {
console.log(`Server running at http://localhost:${port}`);
app.listen(port, () => {
console.log(`App listening on port ${port}`);
});

0 comments on commit 6e44b5a

Please sign in to comment.