Giter Site home page Giter Site logo

tobiasodion / fastify-typescript-generator Goto Github PK

View Code? Open in Web Editor NEW

This project forked from opendevs-org/fastify-typescript-generator

0.0 0.0 0.0 1.93 MB

generates new fastify applications in everyone's favourite language typescript with various options to choose from based on your project needs

Home Page: https://opendevs.in

License: MIT License

JavaScript 18.97% TypeScript 81.03%

fastify-typescript-generator's Introduction

welcome to fastify-typescript-generator ๐Ÿ‘‹

Version npm npm bundle size npm Documentation Maintenance License: MIT Snyk Vulnerabilities for npm package

generates new fastify applications in everyone's favourite language typescript with various options to choose from based on your project needs

๐Ÿ  homepage

๐Ÿ“ฐ npm

๐Ÿ“ธ demo

fastify-typescript-generator-demo

install

$ npm i -g fastify-typescript-generator

usage

Run anyone of following commands:

$ fastify-gen
# or
$ fastify-typescript-generator
# or
$ fastify-ts-gen

Or, to avoid installation and usage simply use the following command:

$ npx fastify-typescript-generator

โ“ what is it

creates a new fastify application as a starter boilerplate similar to the fastify-cli module. except this new application is configured to use typeScript instead of plain javascript and provides various options such as, kind of project structure to use with focus on plugin structure for fastify developers and express structure for developers with experience in developing with express, it also provides options for typeorm or mongoose.

๐Ÿค” why fastify-typescript-generator

nodejs is great for the rapid development of web-projects, but is often neglected because of the lack of type safety. typescript solves this issue and (along with its linter file) can even make your code more robust than some other static languages like java.

there are some other tools out there to generate fastify apps with javascript such as fastify-cli, but these either haven't been updated in a while or don't support typescript or don't support various development patterns.

in this application you have two options to setup a project in fastify plugin architecture or express architecture, we have setup mongoose/typeorm integration, routes, swagger (in plugin structure only) for you.

๐Ÿ“œ different options available explained

description of various options available
name description
plugin-structure-mongoose this type of structure includes fastify plugin structure which relies on modules described as reusable plugins that contain their own entities, routes & schemas, additionally paired with swagger and mongoose for connection with mongodb
plugin-structure-typeorm this type of structure includes fastify plugin structure which relies on modules described as reusable plugins that contain their own entities, routes & schemas, additionally paired with swagger and typeorm for connection with various sql (like postgresql, mysql) and no-sql databases (like mongodb)
express-structure-mongoose this type of structure includes express generator structure which relies on models, routes, dao, services, additionally paired with swagger and mongoose for connection with mongodb
express-structure-typeorm this type of structure includes express generator structure which relies on models, routes, services, additionally paired with swagger and typeorm for connection with various sql (like postgresql, mysql) and no-sql databases (like mongodb)

happy app-deving ๐Ÿ˜Š

๐Ÿ‘ค author

open devs ([email protected])

๐Ÿš€ future scope

  • adding docker & container configurations
  • adding template support
  • more template structures

๐Ÿค contributing

contributions, issues and feature requests are welcome!
feel free to check issues page. you can also take a look at the contributing guide.

๐Ÿ™Œ show your support

give a โญ๏ธ if this project helped you!

Buy Me A Coffee

๐Ÿ“ license

copyright ยฉ 2020 open devs ([email protected]).
This project is MIT licensed.


this README was generated with โค๏ธ by readme-md-generator

fastify-typescript-generator's People

Contributors

mikr13 avatar alok722 avatar dependabot[bot] avatar dylanh724 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.