├── .gitignore ├── app.js └── package.json /.gitignore: -------------------------------------------------------------------------------- 1 | /node_modules 2 | -------------------------------------------------------------------------------- /app.js: -------------------------------------------------------------------------------- 1 | const app = require("express")(); 2 | 3 | const PORT = process.env.PORT || 3000; 4 | 5 | app.get("", (req, res) => { 6 | res.send("Hello world"); 7 | }); 8 | 9 | app.listen(PORT, () => { 10 | console.log(`App up at port ${PORT}`); 11 | }); 12 | -------------------------------------------------------------------------------- /package.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "hosting", 3 | "version": "1.0.0", 4 | "description": "", 5 | "main": "index.js", 6 | "scripts": { 7 | "start": "node ./app.js", 8 | "test": "echo \"Error: no test specified\" && exit 1" 9 | }, 10 | "keywords": [], 11 | "author": "", 12 | "license": "ISC", 13 | "dependencies": { 14 | "express": "^4.18.2" 15 | } 16 | } 17 | --------------------------------------------------------------------------------