UNPKG

nopalm

Version:

One stop graphical solution to create and manage your local Node.Js projects end to end.

15 lines (12 loc) 322 B
import fastify from 'fastify'; const app = fastify({ logger: true }); app.get('/ping', (request, reply) => { reply.send('Hello World!'); }); app.listen({ port: 3000 }, (err, address) => { if (err) { app.log.error(err); process.exit(1); } console.log(`Fastify running at ${address}`); });