fastify-generate

0.5.0 • Public • Published

Generate fastify applications fastly

NPM Build Standard Prettier Greenkeeper

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

  1. Create a fastify app:
fastify path/to/app
  1. Create a fastify plugin:
fastify -P path/to/plugin
  1. 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

License

MIT

Package Sidebar

Install

npm i fastify-generate

Weekly Downloads

4

Version

0.5.0

License

MIT

Unpacked Size

352 kB

Total Files

54

Last publish

Collaborators

  • arniu