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