Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
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
You can’t perform that action at this time.