fastify-generate
v0.5.0
Published
Generate fastify applications fastly
Downloads
57
Maintainers
Readme
Generate fastify applications fastly
Installation
npm install -g fastify-generate
Quick 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/app
Install dependencies:
npm install
Start the app at http://localhost:3030/
:
npm start
Examples
- 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/app
Command 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