Skip to content

Instantly share code, notes, and snippets.

@yaralahruthik
Last active January 30, 2021 15:12
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save yaralahruthik/96d841cbed5a97cd2197bf638d0be0bf to your computer and use it in GitHub Desktop.
Save yaralahruthik/96d841cbed5a97cd2197bf638d0be0bf to your computer and use it in GitHub Desktop.
Basic Node.js Application
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