├── .demo └── fastify-ts-gen-demo.gif ├── .eslintrc.yml ├── .github └── workflows │ ├── codeql-analysis.yml │ └── npm-publish.yml ├── .gitignore ├── .npmignore ├── .snyk ├── CONTRIBUTING.md ├── LICENSE ├── README.md ├── bin └── fastify-typescript-generator.js ├── lib ├── .gitignore ├── cli.js ├── fastify-generator.js └── templates │ ├── express-structure-mongoose │ ├── .env.sample │ ├── .eslintrc.json │ ├── .gitignore │ ├── README.md │ ├── jest.config.js │ ├── package.json │ ├── src │ │ ├── config │ │ │ └── db.ts │ │ ├── dao │ │ │ ├── index.ts │ │ │ └── product.ts │ │ ├── index.ts │ │ ├── models │ │ │ └── product.ts │ │ ├── routes │ │ │ ├── health.ts │ │ │ └── product.ts │ │ └── server.ts │ ├── test │ │ └── routes.test.ts │ └── tsconfig.json │ ├── express-structure-typeorm │ ├── .env.sample │ ├── .eslintrc.json │ ├── .gitignore │ ├── README.md │ ├── jest.config.js │ ├── ormconfig.json │ ├── package.json │ ├── src │ │ ├── config │ │ │ └── db.ts │ │ ├── index.ts │ │ ├── models │ │ │ ├── index.ts │ │ │ └── product.ts │ │ ├── routes │ │ │ ├── health.ts │ │ │ └── product.ts │ │ └── server.ts │ ├── test │ │ └── server.test.ts │ └── tsconfig.json │ ├── plugin-structure-mongoose │ ├── .env.sample │ ├── .eslintrc.json │ ├── .gitignore │ ├── README.md │ ├── jest.config.js │ ├── package.json │ ├── src │ │ ├── dao │ │ │ ├── index.ts │ │ │ └── product.ts │ │ ├── index.ts │ │ ├── modules │ │ │ ├── health │ │ │ │ ├── routes.ts │ │ │ │ └── schema.ts │ │ │ └── products │ │ │ │ ├── entity.ts │ │ │ │ ├── routes.ts │ │ │ │ └── schema.ts │ │ ├── plugins │ │ │ └── db.ts │ │ └── server.ts │ ├── test │ │ └── routes.test.ts │ └── tsconfig.json │ └── plugin-structure-typeorm │ ├── .env.sample │ ├── .eslintrc.json │ ├── .gitignore │ ├── README.md │ ├── jest.config.js │ ├── ormconfig.json │ ├── package.json │ ├── src │ ├── index.ts │ ├── modules │ │ ├── health │ │ │ ├── routes.ts │ │ │ └── schema.ts │ │ └── products │ │ │ ├── entity.ts │ │ │ ├── routes.ts │ │ │ └── schema.ts │ ├── plugins │ │ └── db.ts │ └── server.ts │ ├── test │ └── server.test.ts │ └── tsconfig.json └── package.json /.demo/fastify-ts-gen-demo.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/opendevs-org/fastify-typescript-generator/HEAD/.demo/fastify-ts-gen-demo.gif -------------------------------------------------------------------------------- /.eslintrc.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/opendevs-org/fastify-typescript-generator/HEAD/.eslintrc.yml -------------------------------------------------------------------------------- /.github/workflows/codeql-analysis.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/opendevs-org/fastify-typescript-generator/HEAD/.github/workflows/codeql-analysis.yml -------------------------------------------------------------------------------- /.github/workflows/npm-publish.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/opendevs-org/fastify-typescript-generator/HEAD/.github/workflows/npm-publish.yml -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/opendevs-org/fastify-typescript-generator/HEAD/.gitignore -------------------------------------------------------------------------------- /.npmignore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/opendevs-org/fastify-typescript-generator/HEAD/.npmignore -------------------------------------------------------------------------------- /.snyk: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/opendevs-org/fastify-typescript-generator/HEAD/.snyk -------------------------------------------------------------------------------- /CONTRIBUTING.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/opendevs-org/fastify-typescript-generator/HEAD/CONTRIBUTING.md -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/opendevs-org/fastify-typescript-generator/HEAD/LICENSE -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/opendevs-org/fastify-typescript-generator/HEAD/README.md -------------------------------------------------------------------------------- /bin/fastify-typescript-generator.js: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env node 2 | 3 | require('../lib/cli'); -------------------------------------------------------------------------------- /lib/.gitignore: -------------------------------------------------------------------------------- 1 | node_modules -------------------------------------------------------------------------------- /lib/cli.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/opendevs-org/fastify-typescript-generator/HEAD/lib/cli.js -------------------------------------------------------------------------------- /lib/fastify-generator.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/opendevs-org/fastify-typescript-generator/HEAD/lib/fastify-generator.js -------------------------------------------------------------------------------- /lib/templates/express-structure-mongoose/.env.sample: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/opendevs-org/fastify-typescript-generator/HEAD/lib/templates/express-structure-mongoose/.env.sample -------------------------------------------------------------------------------- /lib/templates/express-structure-mongoose/.eslintrc.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/opendevs-org/fastify-typescript-generator/HEAD/lib/templates/express-structure-mongoose/.eslintrc.json -------------------------------------------------------------------------------- /lib/templates/express-structure-mongoose/.gitignore: -------------------------------------------------------------------------------- 1 | node_modules 2 | dist 3 | coverage 4 | .env -------------------------------------------------------------------------------- /lib/templates/express-structure-mongoose/README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/opendevs-org/fastify-typescript-generator/HEAD/lib/templates/express-structure-mongoose/README.md -------------------------------------------------------------------------------- /lib/templates/express-structure-mongoose/jest.config.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/opendevs-org/fastify-typescript-generator/HEAD/lib/templates/express-structure-mongoose/jest.config.js -------------------------------------------------------------------------------- /lib/templates/express-structure-mongoose/package.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/opendevs-org/fastify-typescript-generator/HEAD/lib/templates/express-structure-mongoose/package.json -------------------------------------------------------------------------------- /lib/templates/express-structure-mongoose/src/config/db.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/opendevs-org/fastify-typescript-generator/HEAD/lib/templates/express-structure-mongoose/src/config/db.ts -------------------------------------------------------------------------------- /lib/templates/express-structure-mongoose/src/dao/index.ts: -------------------------------------------------------------------------------- 1 | export * from './product'; 2 | -------------------------------------------------------------------------------- /lib/templates/express-structure-mongoose/src/dao/product.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/opendevs-org/fastify-typescript-generator/HEAD/lib/templates/express-structure-mongoose/src/dao/product.ts -------------------------------------------------------------------------------- /lib/templates/express-structure-mongoose/src/index.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/opendevs-org/fastify-typescript-generator/HEAD/lib/templates/express-structure-mongoose/src/index.ts -------------------------------------------------------------------------------- /lib/templates/express-structure-mongoose/src/models/product.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/opendevs-org/fastify-typescript-generator/HEAD/lib/templates/express-structure-mongoose/src/models/product.ts -------------------------------------------------------------------------------- /lib/templates/express-structure-mongoose/src/routes/health.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/opendevs-org/fastify-typescript-generator/HEAD/lib/templates/express-structure-mongoose/src/routes/health.ts -------------------------------------------------------------------------------- /lib/templates/express-structure-mongoose/src/routes/product.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/opendevs-org/fastify-typescript-generator/HEAD/lib/templates/express-structure-mongoose/src/routes/product.ts -------------------------------------------------------------------------------- /lib/templates/express-structure-mongoose/src/server.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/opendevs-org/fastify-typescript-generator/HEAD/lib/templates/express-structure-mongoose/src/server.ts -------------------------------------------------------------------------------- /lib/templates/express-structure-mongoose/test/routes.test.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/opendevs-org/fastify-typescript-generator/HEAD/lib/templates/express-structure-mongoose/test/routes.test.ts -------------------------------------------------------------------------------- /lib/templates/express-structure-mongoose/tsconfig.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/opendevs-org/fastify-typescript-generator/HEAD/lib/templates/express-structure-mongoose/tsconfig.json -------------------------------------------------------------------------------- /lib/templates/express-structure-typeorm/.env.sample: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/opendevs-org/fastify-typescript-generator/HEAD/lib/templates/express-structure-typeorm/.env.sample -------------------------------------------------------------------------------- /lib/templates/express-structure-typeorm/.eslintrc.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/opendevs-org/fastify-typescript-generator/HEAD/lib/templates/express-structure-typeorm/.eslintrc.json -------------------------------------------------------------------------------- /lib/templates/express-structure-typeorm/.gitignore: -------------------------------------------------------------------------------- 1 | node_modules 2 | dist 3 | coverage 4 | .env -------------------------------------------------------------------------------- /lib/templates/express-structure-typeorm/README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/opendevs-org/fastify-typescript-generator/HEAD/lib/templates/express-structure-typeorm/README.md -------------------------------------------------------------------------------- /lib/templates/express-structure-typeorm/jest.config.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/opendevs-org/fastify-typescript-generator/HEAD/lib/templates/express-structure-typeorm/jest.config.js -------------------------------------------------------------------------------- /lib/templates/express-structure-typeorm/ormconfig.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/opendevs-org/fastify-typescript-generator/HEAD/lib/templates/express-structure-typeorm/ormconfig.json -------------------------------------------------------------------------------- /lib/templates/express-structure-typeorm/package.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/opendevs-org/fastify-typescript-generator/HEAD/lib/templates/express-structure-typeorm/package.json -------------------------------------------------------------------------------- /lib/templates/express-structure-typeorm/src/config/db.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/opendevs-org/fastify-typescript-generator/HEAD/lib/templates/express-structure-typeorm/src/config/db.ts -------------------------------------------------------------------------------- /lib/templates/express-structure-typeorm/src/index.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/opendevs-org/fastify-typescript-generator/HEAD/lib/templates/express-structure-typeorm/src/index.ts -------------------------------------------------------------------------------- /lib/templates/express-structure-typeorm/src/models/index.ts: -------------------------------------------------------------------------------- 1 | export * from './product'; 2 | -------------------------------------------------------------------------------- /lib/templates/express-structure-typeorm/src/models/product.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/opendevs-org/fastify-typescript-generator/HEAD/lib/templates/express-structure-typeorm/src/models/product.ts -------------------------------------------------------------------------------- /lib/templates/express-structure-typeorm/src/routes/health.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/opendevs-org/fastify-typescript-generator/HEAD/lib/templates/express-structure-typeorm/src/routes/health.ts -------------------------------------------------------------------------------- /lib/templates/express-structure-typeorm/src/routes/product.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/opendevs-org/fastify-typescript-generator/HEAD/lib/templates/express-structure-typeorm/src/routes/product.ts -------------------------------------------------------------------------------- /lib/templates/express-structure-typeorm/src/server.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/opendevs-org/fastify-typescript-generator/HEAD/lib/templates/express-structure-typeorm/src/server.ts -------------------------------------------------------------------------------- /lib/templates/express-structure-typeorm/test/server.test.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/opendevs-org/fastify-typescript-generator/HEAD/lib/templates/express-structure-typeorm/test/server.test.ts -------------------------------------------------------------------------------- /lib/templates/express-structure-typeorm/tsconfig.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/opendevs-org/fastify-typescript-generator/HEAD/lib/templates/express-structure-typeorm/tsconfig.json -------------------------------------------------------------------------------- /lib/templates/plugin-structure-mongoose/.env.sample: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/opendevs-org/fastify-typescript-generator/HEAD/lib/templates/plugin-structure-mongoose/.env.sample -------------------------------------------------------------------------------- /lib/templates/plugin-structure-mongoose/.eslintrc.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/opendevs-org/fastify-typescript-generator/HEAD/lib/templates/plugin-structure-mongoose/.eslintrc.json -------------------------------------------------------------------------------- /lib/templates/plugin-structure-mongoose/.gitignore: -------------------------------------------------------------------------------- 1 | node_modules 2 | dist 3 | coverage 4 | .env -------------------------------------------------------------------------------- /lib/templates/plugin-structure-mongoose/README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/opendevs-org/fastify-typescript-generator/HEAD/lib/templates/plugin-structure-mongoose/README.md -------------------------------------------------------------------------------- /lib/templates/plugin-structure-mongoose/jest.config.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/opendevs-org/fastify-typescript-generator/HEAD/lib/templates/plugin-structure-mongoose/jest.config.js -------------------------------------------------------------------------------- /lib/templates/plugin-structure-mongoose/package.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/opendevs-org/fastify-typescript-generator/HEAD/lib/templates/plugin-structure-mongoose/package.json -------------------------------------------------------------------------------- /lib/templates/plugin-structure-mongoose/src/dao/index.ts: -------------------------------------------------------------------------------- 1 | export * from './product'; 2 | -------------------------------------------------------------------------------- /lib/templates/plugin-structure-mongoose/src/dao/product.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/opendevs-org/fastify-typescript-generator/HEAD/lib/templates/plugin-structure-mongoose/src/dao/product.ts -------------------------------------------------------------------------------- /lib/templates/plugin-structure-mongoose/src/index.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/opendevs-org/fastify-typescript-generator/HEAD/lib/templates/plugin-structure-mongoose/src/index.ts -------------------------------------------------------------------------------- /lib/templates/plugin-structure-mongoose/src/modules/health/routes.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/opendevs-org/fastify-typescript-generator/HEAD/lib/templates/plugin-structure-mongoose/src/modules/health/routes.ts -------------------------------------------------------------------------------- /lib/templates/plugin-structure-mongoose/src/modules/health/schema.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/opendevs-org/fastify-typescript-generator/HEAD/lib/templates/plugin-structure-mongoose/src/modules/health/schema.ts -------------------------------------------------------------------------------- /lib/templates/plugin-structure-mongoose/src/modules/products/entity.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/opendevs-org/fastify-typescript-generator/HEAD/lib/templates/plugin-structure-mongoose/src/modules/products/entity.ts -------------------------------------------------------------------------------- /lib/templates/plugin-structure-mongoose/src/modules/products/routes.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/opendevs-org/fastify-typescript-generator/HEAD/lib/templates/plugin-structure-mongoose/src/modules/products/routes.ts -------------------------------------------------------------------------------- /lib/templates/plugin-structure-mongoose/src/modules/products/schema.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/opendevs-org/fastify-typescript-generator/HEAD/lib/templates/plugin-structure-mongoose/src/modules/products/schema.ts -------------------------------------------------------------------------------- /lib/templates/plugin-structure-mongoose/src/plugins/db.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/opendevs-org/fastify-typescript-generator/HEAD/lib/templates/plugin-structure-mongoose/src/plugins/db.ts -------------------------------------------------------------------------------- /lib/templates/plugin-structure-mongoose/src/server.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/opendevs-org/fastify-typescript-generator/HEAD/lib/templates/plugin-structure-mongoose/src/server.ts -------------------------------------------------------------------------------- /lib/templates/plugin-structure-mongoose/test/routes.test.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/opendevs-org/fastify-typescript-generator/HEAD/lib/templates/plugin-structure-mongoose/test/routes.test.ts -------------------------------------------------------------------------------- /lib/templates/plugin-structure-mongoose/tsconfig.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/opendevs-org/fastify-typescript-generator/HEAD/lib/templates/plugin-structure-mongoose/tsconfig.json -------------------------------------------------------------------------------- /lib/templates/plugin-structure-typeorm/.env.sample: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/opendevs-org/fastify-typescript-generator/HEAD/lib/templates/plugin-structure-typeorm/.env.sample -------------------------------------------------------------------------------- /lib/templates/plugin-structure-typeorm/.eslintrc.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/opendevs-org/fastify-typescript-generator/HEAD/lib/templates/plugin-structure-typeorm/.eslintrc.json -------------------------------------------------------------------------------- /lib/templates/plugin-structure-typeorm/.gitignore: -------------------------------------------------------------------------------- 1 | node_modules 2 | dist 3 | coverage 4 | .env -------------------------------------------------------------------------------- /lib/templates/plugin-structure-typeorm/README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/opendevs-org/fastify-typescript-generator/HEAD/lib/templates/plugin-structure-typeorm/README.md -------------------------------------------------------------------------------- /lib/templates/plugin-structure-typeorm/jest.config.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/opendevs-org/fastify-typescript-generator/HEAD/lib/templates/plugin-structure-typeorm/jest.config.js -------------------------------------------------------------------------------- /lib/templates/plugin-structure-typeorm/ormconfig.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/opendevs-org/fastify-typescript-generator/HEAD/lib/templates/plugin-structure-typeorm/ormconfig.json -------------------------------------------------------------------------------- /lib/templates/plugin-structure-typeorm/package.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/opendevs-org/fastify-typescript-generator/HEAD/lib/templates/plugin-structure-typeorm/package.json -------------------------------------------------------------------------------- /lib/templates/plugin-structure-typeorm/src/index.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/opendevs-org/fastify-typescript-generator/HEAD/lib/templates/plugin-structure-typeorm/src/index.ts -------------------------------------------------------------------------------- /lib/templates/plugin-structure-typeorm/src/modules/health/routes.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/opendevs-org/fastify-typescript-generator/HEAD/lib/templates/plugin-structure-typeorm/src/modules/health/routes.ts -------------------------------------------------------------------------------- /lib/templates/plugin-structure-typeorm/src/modules/health/schema.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/opendevs-org/fastify-typescript-generator/HEAD/lib/templates/plugin-structure-typeorm/src/modules/health/schema.ts -------------------------------------------------------------------------------- /lib/templates/plugin-structure-typeorm/src/modules/products/entity.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/opendevs-org/fastify-typescript-generator/HEAD/lib/templates/plugin-structure-typeorm/src/modules/products/entity.ts -------------------------------------------------------------------------------- /lib/templates/plugin-structure-typeorm/src/modules/products/routes.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/opendevs-org/fastify-typescript-generator/HEAD/lib/templates/plugin-structure-typeorm/src/modules/products/routes.ts -------------------------------------------------------------------------------- /lib/templates/plugin-structure-typeorm/src/modules/products/schema.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/opendevs-org/fastify-typescript-generator/HEAD/lib/templates/plugin-structure-typeorm/src/modules/products/schema.ts -------------------------------------------------------------------------------- /lib/templates/plugin-structure-typeorm/src/plugins/db.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/opendevs-org/fastify-typescript-generator/HEAD/lib/templates/plugin-structure-typeorm/src/plugins/db.ts -------------------------------------------------------------------------------- /lib/templates/plugin-structure-typeorm/src/server.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/opendevs-org/fastify-typescript-generator/HEAD/lib/templates/plugin-structure-typeorm/src/server.ts -------------------------------------------------------------------------------- /lib/templates/plugin-structure-typeorm/test/server.test.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/opendevs-org/fastify-typescript-generator/HEAD/lib/templates/plugin-structure-typeorm/test/server.test.ts -------------------------------------------------------------------------------- /lib/templates/plugin-structure-typeorm/tsconfig.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/opendevs-org/fastify-typescript-generator/HEAD/lib/templates/plugin-structure-typeorm/tsconfig.json -------------------------------------------------------------------------------- /package.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/opendevs-org/fastify-typescript-generator/HEAD/package.json --------------------------------------------------------------------------------