Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- const express = require('express')
- const app = express()
- const port = process.env.PORT || 3000 // you need process.env.PORT to comply with Heroku's port choice
- app.get('/', (req, res) => {
- res.send('Hello World!')
- })
- app.listen(port, () => {
- console.log(`Example app listening at http://localhost:${port}`)
- })
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement