Add express server with a basic route

This commit is contained in:
AbdulRahman 2024-02-13 23:00:05 +03:00
parent 6fc1c709ae
commit 8f6c21c98b

11
index.js Normal file
View File

@ -0,0 +1,11 @@
const express = require('express');
const app = express();
app.get('/', (req, res) => {
res.send('Hello World');
});
app.listen(3000, () => {
console.log('Server is running on port 3000');
});