From a7259bc0425f5b292b7e04a39a7f07ce29c3c35d Mon Sep 17 00:00:00 2001 From: M1n-0 <145598371+M1n-0@users.noreply.github.com> Date: Wed, 5 Jun 2024 19:23:02 +0200 Subject: [PATCH] try backend js --- js/app.js | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 js/app.js diff --git a/js/app.js b/js/app.js new file mode 100644 index 0000000..e2664f3 --- /dev/null +++ b/js/app.js @@ -0,0 +1,11 @@ +const express = require('express'); +const app = express(); +const port = 3000; + +app.get('/', (req, res) => { + res.send('Hello from Node.js and Express!'); +}); + +app.listen(port, () => { + console.log(`Example app listening at http://localhost:${port}`); +});