Created
September 16, 2018 16:32
-
-
Save robinglen/8c5b30e9e97aa24a0bd94350e56d1306 to your computer and use it in GitHub Desktop.
Simple hello world in Node, using Fastify for Medium post
This file contains hidden or 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 fastify = require('fastify')(); | |
const port = 8123; | |
fastify.get('*', (req, res) => { | |
res.send('Hello World'); | |
}); | |
fastify.listen(port, () => { | |
console.log(`Fastify "Hello World" listening on port ${port}`); | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment