0.5.0 • Published 6 years ago
fastify-generate v0.5.0
Generate fastify applications fastly
Installation
npm install -g fastify-generateQuick Start
The quickest way to get started with fastify is to utilize the executable fastify(1) to generate an application as shown below:
Create the app:
fastify path/to/app && cd path/to/appInstall dependencies:
npm installStart the app at http://localhost:3030/:
npm startExamples
- Create a fastify app:
fastify path/to/app- Create a fastify plugin:
fastify -P path/to/plugin- Add more option for creating the app:
fastify -F v1.0 -p 3030 path/to/appCommand Line Options
Options:
-h, --help output usage information
-v, --version output the version number
For Generating:
-P, --plugin generate a fastify plugin
-F, --fastify specify fastify version
-p, --port specify the port to use