Last active
January 30, 2021 15:12
-
-
Save yaralahruthik/96d841cbed5a97cd2197bf638d0be0bf to your computer and use it in GitHub Desktop.
Basic Node.js Application
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const express = require('express') \\ You'll have to install it by running npm i express in the command prompt | |
const app = express() | |
const port = 3000 | |
app.get('/', (req, res) => res.send('<html><body>Demonstration Input Field <hr> <input value="' + req.query.name + '"></body></html>')) | |
app.listen(port, () => console.log(`Sample App listening at http://localhost:${port}`)) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment