├── .github ├── ISSUE_TEMPLATE.md ├── ISSUE_TEMPLATE │ ├── example.md │ └── not-works.md └── PULL_REQUEST_TEMPLATE │ ├── hosted-project.md │ └── self-hosted-project.md ├── .gitignore ├── LICENSE ├── README.md ├── fastify-postgres ├── .postgratorrc.json ├── Dockerfile ├── README.md ├── docker-compose.yaml ├── index.js ├── migrations │ ├── 001.do.books.sql │ └── 001.undo.books.sql ├── package.json ├── server.js └── test.js ├── fastify-session-authentication ├── README.md ├── authentication.js ├── authentication.test.js ├── html.js └── package.json ├── tests ├── app.js ├── database-connection │ ├── mongodb-setup.js │ └── mongodb.test.js ├── package.json └── server.js ├── typescript-decorators ├── .gitignore ├── README.md ├── bin │ └── app.js ├── package.json ├── src │ ├── controllers │ │ └── main.controller.ts │ ├── services │ │ └── message.service.ts │ └── typescript-decorators.ts ├── test │ └── main.controller.spec.ts └── tsconfig.json ├── validation-messages ├── README.md ├── custom-errors-messages.js ├── custom-errors-messages.test.js └── package.json └── winston-logger ├── README.md ├── package.json └── winston-logger.js /.github/ISSUE_TEMPLATE.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fastify/example/HEAD/.github/ISSUE_TEMPLATE.md -------------------------------------------------------------------------------- /.github/ISSUE_TEMPLATE/example.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fastify/example/HEAD/.github/ISSUE_TEMPLATE/example.md -------------------------------------------------------------------------------- /.github/ISSUE_TEMPLATE/not-works.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fastify/example/HEAD/.github/ISSUE_TEMPLATE/not-works.md -------------------------------------------------------------------------------- /.github/PULL_REQUEST_TEMPLATE/hosted-project.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fastify/example/HEAD/.github/PULL_REQUEST_TEMPLATE/hosted-project.md -------------------------------------------------------------------------------- /.github/PULL_REQUEST_TEMPLATE/self-hosted-project.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fastify/example/HEAD/.github/PULL_REQUEST_TEMPLATE/self-hosted-project.md -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fastify/example/HEAD/.gitignore -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fastify/example/HEAD/LICENSE -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fastify/example/HEAD/README.md -------------------------------------------------------------------------------- /fastify-postgres/.postgratorrc.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fastify/example/HEAD/fastify-postgres/.postgratorrc.json -------------------------------------------------------------------------------- /fastify-postgres/Dockerfile: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fastify/example/HEAD/fastify-postgres/Dockerfile -------------------------------------------------------------------------------- /fastify-postgres/README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fastify/example/HEAD/fastify-postgres/README.md -------------------------------------------------------------------------------- /fastify-postgres/docker-compose.yaml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fastify/example/HEAD/fastify-postgres/docker-compose.yaml -------------------------------------------------------------------------------- /fastify-postgres/index.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fastify/example/HEAD/fastify-postgres/index.js -------------------------------------------------------------------------------- /fastify-postgres/migrations/001.do.books.sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fastify/example/HEAD/fastify-postgres/migrations/001.do.books.sql -------------------------------------------------------------------------------- /fastify-postgres/migrations/001.undo.books.sql: -------------------------------------------------------------------------------- 1 | DROP TABLE IF EXISTS books 2 | -------------------------------------------------------------------------------- /fastify-postgres/package.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fastify/example/HEAD/fastify-postgres/package.json -------------------------------------------------------------------------------- /fastify-postgres/server.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fastify/example/HEAD/fastify-postgres/server.js -------------------------------------------------------------------------------- /fastify-postgres/test.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fastify/example/HEAD/fastify-postgres/test.js -------------------------------------------------------------------------------- /fastify-session-authentication/README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fastify/example/HEAD/fastify-session-authentication/README.md -------------------------------------------------------------------------------- /fastify-session-authentication/authentication.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fastify/example/HEAD/fastify-session-authentication/authentication.js -------------------------------------------------------------------------------- /fastify-session-authentication/authentication.test.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fastify/example/HEAD/fastify-session-authentication/authentication.test.js -------------------------------------------------------------------------------- /fastify-session-authentication/html.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fastify/example/HEAD/fastify-session-authentication/html.js -------------------------------------------------------------------------------- /fastify-session-authentication/package.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fastify/example/HEAD/fastify-session-authentication/package.json -------------------------------------------------------------------------------- /tests/app.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fastify/example/HEAD/tests/app.js -------------------------------------------------------------------------------- /tests/database-connection/mongodb-setup.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fastify/example/HEAD/tests/database-connection/mongodb-setup.js -------------------------------------------------------------------------------- /tests/database-connection/mongodb.test.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fastify/example/HEAD/tests/database-connection/mongodb.test.js -------------------------------------------------------------------------------- /tests/package.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fastify/example/HEAD/tests/package.json -------------------------------------------------------------------------------- /tests/server.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fastify/example/HEAD/tests/server.js -------------------------------------------------------------------------------- /typescript-decorators/.gitignore: -------------------------------------------------------------------------------- 1 | dist 2 | -------------------------------------------------------------------------------- /typescript-decorators/README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fastify/example/HEAD/typescript-decorators/README.md -------------------------------------------------------------------------------- /typescript-decorators/bin/app.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fastify/example/HEAD/typescript-decorators/bin/app.js -------------------------------------------------------------------------------- /typescript-decorators/package.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fastify/example/HEAD/typescript-decorators/package.json -------------------------------------------------------------------------------- /typescript-decorators/src/controllers/main.controller.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fastify/example/HEAD/typescript-decorators/src/controllers/main.controller.ts -------------------------------------------------------------------------------- /typescript-decorators/src/services/message.service.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fastify/example/HEAD/typescript-decorators/src/services/message.service.ts -------------------------------------------------------------------------------- /typescript-decorators/src/typescript-decorators.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fastify/example/HEAD/typescript-decorators/src/typescript-decorators.ts -------------------------------------------------------------------------------- /typescript-decorators/test/main.controller.spec.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fastify/example/HEAD/typescript-decorators/test/main.controller.spec.ts -------------------------------------------------------------------------------- /typescript-decorators/tsconfig.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fastify/example/HEAD/typescript-decorators/tsconfig.json -------------------------------------------------------------------------------- /validation-messages/README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fastify/example/HEAD/validation-messages/README.md -------------------------------------------------------------------------------- /validation-messages/custom-errors-messages.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fastify/example/HEAD/validation-messages/custom-errors-messages.js -------------------------------------------------------------------------------- /validation-messages/custom-errors-messages.test.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fastify/example/HEAD/validation-messages/custom-errors-messages.test.js -------------------------------------------------------------------------------- /validation-messages/package.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fastify/example/HEAD/validation-messages/package.json -------------------------------------------------------------------------------- /winston-logger/README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fastify/example/HEAD/winston-logger/README.md -------------------------------------------------------------------------------- /winston-logger/package.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fastify/example/HEAD/winston-logger/package.json -------------------------------------------------------------------------------- /winston-logger/winston-logger.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fastify/example/HEAD/winston-logger/winston-logger.js --------------------------------------------------------------------------------