0.1.7 • Published 10 months ago

generator-fastify-ts v0.1.7

Weekly downloads
-
License
MIT
Repository
github
Last release
10 months ago

generator-fastify-ts NPM version

Fastify + Typescript boilerplate

Plugins included

How to use plugins

All plugins are registered in file src/app.ts. THE REGISTER ORDER are important, because one plugin can depends on another.

After registration, plugin can be accessed through app - which is instance of FastifyInstance.

Example:

// Example using it inside a route
app.get('/api', async (request, reply) => {
  const msgFromRedis = await app.redis.get('message');

  return reply.send({
    message: msgFromRedis,
  });
});

Installation

First, install Yeoman and generator-fastify-ts using npm (we assume you have pre-installed node.js).

npm install -g yo
npm install -g generator-fastify-ts

Then generate your new project:

yo fastify-ts

Changelog

v0.1.7

  • Add plugin bcrypt
  • Update types for plugins

v0.1.6

  • Update types for plugin s3

v0.1.5

  • Replace @fastify/multipart with fastify-multer
  • Fix bug with s3 plugin

v0.1.4

  • Fix bug with email plugin

v0.1.3

  • Fix bug missing .gitignore file

License

MIT © luuhai48

0.1.7

10 months ago

0.1.6

10 months ago

0.1.5

10 months ago

0.1.4

12 months ago

0.1.3

1 year ago

0.1.2

1 year ago

0.1.1

1 year ago

0.1.0

1 year ago