Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
Simple hello world in Node, using Fastify for Medium post
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