Created
May 4, 2021 07:22
-
-
Save Davidegloh/bc5c6f9cb0f3beddcc11f46d230c8a79 to your computer and use it in GitHub Desktop.
[Express get started] #express
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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