nopalm
Version:
One stop graphical solution to create and manage your local Node.Js projects end to end.
14 lines (11 loc) • 318 B
JavaScript
const fastify = require('fastify')({ logger: true });
fastify.get('/ping', (request, reply) => {
reply.send('Hello World!');
});
fastify.listen({ port: 3000 }, (err, address) => {
if (err) {
fastify.log.error(err);
process.exit(1);
}
console.log(`Fastify running at ${address}`);
});