├── .dockerignore ├── .editorconfig ├── .env.example ├── .gitignore ├── .vscode └── launch.json ├── Dockerfile ├── LICENSE ├── Makefile ├── Readme.md ├── docker-compose.dev.yml ├── docker-compose.prod.yml ├── docker-compose.yml ├── docs └── Postman.collection.json ├── nodemon.json ├── package.json ├── pm2.config.json ├── prisma ├── schema.prisma └── seed.ts ├── src ├── app.ts ├── config │ ├── compress.config.ts │ ├── cors.config.ts │ ├── helmet.config.ts │ ├── logger.config.ts │ └── swagger.config.ts ├── controllers │ ├── categories.controller.ts │ └── products.controller.ts ├── index.ts ├── lib │ ├── env.config.ts │ └── exit-handler.ts ├── plugins │ └── prisma.plugin.ts ├── routes │ ├── categories.routes.ts │ └── products.routes.ts ├── schema │ ├── categories.schema.ts │ ├── common.schema.ts │ ├── models.schema.ts │ └── products.schema.ts └── types │ ├── config.d.ts │ ├── prisma.d.ts │ └── requests.d.ts └── tsconfig.json /.dockerignore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/danielm/fastify-prisma-swagger-rest-boilerplate/HEAD/.dockerignore -------------------------------------------------------------------------------- /.editorconfig: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/danielm/fastify-prisma-swagger-rest-boilerplate/HEAD/.editorconfig -------------------------------------------------------------------------------- /.env.example: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/danielm/fastify-prisma-swagger-rest-boilerplate/HEAD/.env.example -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/danielm/fastify-prisma-swagger-rest-boilerplate/HEAD/.gitignore -------------------------------------------------------------------------------- /.vscode/launch.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/danielm/fastify-prisma-swagger-rest-boilerplate/HEAD/.vscode/launch.json -------------------------------------------------------------------------------- /Dockerfile: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/danielm/fastify-prisma-swagger-rest-boilerplate/HEAD/Dockerfile -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/danielm/fastify-prisma-swagger-rest-boilerplate/HEAD/LICENSE -------------------------------------------------------------------------------- /Makefile: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/danielm/fastify-prisma-swagger-rest-boilerplate/HEAD/Makefile -------------------------------------------------------------------------------- /Readme.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/danielm/fastify-prisma-swagger-rest-boilerplate/HEAD/Readme.md -------------------------------------------------------------------------------- /docker-compose.dev.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/danielm/fastify-prisma-swagger-rest-boilerplate/HEAD/docker-compose.dev.yml -------------------------------------------------------------------------------- /docker-compose.prod.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/danielm/fastify-prisma-swagger-rest-boilerplate/HEAD/docker-compose.prod.yml -------------------------------------------------------------------------------- /docker-compose.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/danielm/fastify-prisma-swagger-rest-boilerplate/HEAD/docker-compose.yml -------------------------------------------------------------------------------- /docs/Postman.collection.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/danielm/fastify-prisma-swagger-rest-boilerplate/HEAD/docs/Postman.collection.json -------------------------------------------------------------------------------- /nodemon.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/danielm/fastify-prisma-swagger-rest-boilerplate/HEAD/nodemon.json -------------------------------------------------------------------------------- /package.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/danielm/fastify-prisma-swagger-rest-boilerplate/HEAD/package.json -------------------------------------------------------------------------------- /pm2.config.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/danielm/fastify-prisma-swagger-rest-boilerplate/HEAD/pm2.config.json -------------------------------------------------------------------------------- /prisma/schema.prisma: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/danielm/fastify-prisma-swagger-rest-boilerplate/HEAD/prisma/schema.prisma -------------------------------------------------------------------------------- /prisma/seed.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/danielm/fastify-prisma-swagger-rest-boilerplate/HEAD/prisma/seed.ts -------------------------------------------------------------------------------- /src/app.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/danielm/fastify-prisma-swagger-rest-boilerplate/HEAD/src/app.ts -------------------------------------------------------------------------------- /src/config/compress.config.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/danielm/fastify-prisma-swagger-rest-boilerplate/HEAD/src/config/compress.config.ts -------------------------------------------------------------------------------- /src/config/cors.config.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/danielm/fastify-prisma-swagger-rest-boilerplate/HEAD/src/config/cors.config.ts -------------------------------------------------------------------------------- /src/config/helmet.config.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/danielm/fastify-prisma-swagger-rest-boilerplate/HEAD/src/config/helmet.config.ts -------------------------------------------------------------------------------- /src/config/logger.config.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/danielm/fastify-prisma-swagger-rest-boilerplate/HEAD/src/config/logger.config.ts -------------------------------------------------------------------------------- /src/config/swagger.config.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/danielm/fastify-prisma-swagger-rest-boilerplate/HEAD/src/config/swagger.config.ts -------------------------------------------------------------------------------- /src/controllers/categories.controller.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/danielm/fastify-prisma-swagger-rest-boilerplate/HEAD/src/controllers/categories.controller.ts -------------------------------------------------------------------------------- /src/controllers/products.controller.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/danielm/fastify-prisma-swagger-rest-boilerplate/HEAD/src/controllers/products.controller.ts -------------------------------------------------------------------------------- /src/index.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/danielm/fastify-prisma-swagger-rest-boilerplate/HEAD/src/index.ts -------------------------------------------------------------------------------- /src/lib/env.config.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/danielm/fastify-prisma-swagger-rest-boilerplate/HEAD/src/lib/env.config.ts -------------------------------------------------------------------------------- /src/lib/exit-handler.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/danielm/fastify-prisma-swagger-rest-boilerplate/HEAD/src/lib/exit-handler.ts -------------------------------------------------------------------------------- /src/plugins/prisma.plugin.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/danielm/fastify-prisma-swagger-rest-boilerplate/HEAD/src/plugins/prisma.plugin.ts -------------------------------------------------------------------------------- /src/routes/categories.routes.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/danielm/fastify-prisma-swagger-rest-boilerplate/HEAD/src/routes/categories.routes.ts -------------------------------------------------------------------------------- /src/routes/products.routes.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/danielm/fastify-prisma-swagger-rest-boilerplate/HEAD/src/routes/products.routes.ts -------------------------------------------------------------------------------- /src/schema/categories.schema.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/danielm/fastify-prisma-swagger-rest-boilerplate/HEAD/src/schema/categories.schema.ts -------------------------------------------------------------------------------- /src/schema/common.schema.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/danielm/fastify-prisma-swagger-rest-boilerplate/HEAD/src/schema/common.schema.ts -------------------------------------------------------------------------------- /src/schema/models.schema.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/danielm/fastify-prisma-swagger-rest-boilerplate/HEAD/src/schema/models.schema.ts -------------------------------------------------------------------------------- /src/schema/products.schema.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/danielm/fastify-prisma-swagger-rest-boilerplate/HEAD/src/schema/products.schema.ts -------------------------------------------------------------------------------- /src/types/config.d.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/danielm/fastify-prisma-swagger-rest-boilerplate/HEAD/src/types/config.d.ts -------------------------------------------------------------------------------- /src/types/prisma.d.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/danielm/fastify-prisma-swagger-rest-boilerplate/HEAD/src/types/prisma.d.ts -------------------------------------------------------------------------------- /src/types/requests.d.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/danielm/fastify-prisma-swagger-rest-boilerplate/HEAD/src/types/requests.d.ts -------------------------------------------------------------------------------- /tsconfig.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/danielm/fastify-prisma-swagger-rest-boilerplate/HEAD/tsconfig.json --------------------------------------------------------------------------------