@react-foundry/fastify
v0.1.7
Published
A customised Fastify server for running websites.
Readme
React Foundry - Fastify
A customised Fastify server for running websites.
Using this package
First install the package into your project:
npm install -S @react-foundry/fastifyThen use it in your code as follows:
import Fastify from '@react-foundry/fastify';
const httpd = Fastify({});
httpd.get('/', async (req, reply) => {
return {
message: 'Hello world!'
};
});
await httpd.listen({ port: 8080 });Working on this package
Before working on this package you must install its dependencies using the following command:
pnpm installBuilding
Build the package by compiling the source code.
npm run buildClean-up
Remove any previously built files.
npm run clean