Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save ujwaldhakal/f1e38477b553e759829e71ec95fa46a6 to your computer and use it in GitHub Desktop.
Save ujwaldhakal/f1e38477b553e759829e71ec95fa46a6 to your computer and use it in GitHub Desktop.
index.js
const express = require('express')
const app = express()
const port = 8080
app.get('/', (req, res) => {
res.send('hello world')
})
app.get('/healthcheck', (req, res) => {
res.send('up!')
})
app.listen(port, () => {
console.log(`Example app listening at http://localhost:${port}`)
})
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment