Skip to content

Instantly share code, notes, and snippets.

@Davidegloh
Created May 4, 2021 07:22
Show Gist options
  • Save Davidegloh/bc5c6f9cb0f3beddcc11f46d230c8a79 to your computer and use it in GitHub Desktop.
Save Davidegloh/bc5c6f9cb0f3beddcc11f46d230c8a79 to your computer and use it in GitHub Desktop.
[Express get started] #express
const dotenv = require('dotenv');
const express = require('express')
dotenv.config();
const port = 3000
const app = express();
app.get('/', (req, res) => {
res.send('Hello World!')
})
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