commit 6d42105c0f90e30762f79a005a5d0dccc33f09b1 Author: Angelus Vela Date: Thu Oct 15 09:52:26 2026 -0600 First Example Node.js diff --git a/index.js b/index.js new file mode 100644 index 0000000..deff8ca --- /dev/null +++ b/index.js @@ -0,0 +1,12 @@ +const express = require('express'); +const app = express(); +const http = require('http'); +const server = http.createServer(app); + +app.get('/', (req, res) => { + res.send('

Hello Angelus!

'); +}); + +server.listen(3333, () => { + console.log('listen on part 3333'); +}); diff --git a/package.json b/package.json new file mode 100644 index 0000000..e3bd897 --- /dev/null +++ b/package.json @@ -0,0 +1,15 @@ +{ + "name": "nodejs-first-example", + "version": "1.0.0", + "description": "", + "main": "index.js", + "scripts": { + "test": "echo \"Error: no test specified\" && exit 1" + }, + "keywords": [], + "author": "", + "license": "ISC", + "dependencies": { + "express": "^4.22.3" + } +}