Skip to content

Instantly share code, notes, and snippets.

@kerminz
Created May 12, 2019 11:54
Show Gist options
  • Save kerminz/c41a914a719b8d915d6470acfacfbf04 to your computer and use it in GitHub Desktop.
Save kerminz/c41a914a719b8d915d6470acfacfbf04 to your computer and use it in GitHub Desktop.
Simple Web-Server with NodeJS & Express
const express = require('express')
const app = express()
app.get('/', (req, res) => {
res.send('Hello World')
})
app.listen(3000, (err) => {
if (err) {
console.log("Error: ", err)
} else {
console.log("Server is up!")
}
})
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment