├── .env.example ├── .github ├── renovate.json └── workflows │ └── main.yml ├── .gitignore ├── .husky ├── .gitignore └── pre-commit ├── README.md ├── jest.config.js ├── nodemon.json ├── package.json ├── prisma ├── prisma-test-environment.js ├── schema.prisma └── seed.ts ├── setupTests.ts ├── src ├── app.ts ├── controllers │ ├── auth.ts │ ├── index.ts │ └── user.ts ├── globals.d.ts ├── helpers │ ├── errors.ts │ └── utils.ts ├── index.ts ├── middleware │ ├── auth.ts │ └── index.ts └── routes │ ├── index.ts │ └── routes.ts ├── tests ├── auth.test.ts └── helpers.ts ├── tsconfig.json └── yarn.lock /.env.example: -------------------------------------------------------------------------------- 1 | DATABASE_URL="postgresql://username:password@host:port/db" 2 | JWT_SECRET = 'secret123' 3 | -------------------------------------------------------------------------------- /.github/renovate.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ryands17/fastify-prisma/HEAD/.github/renovate.json -------------------------------------------------------------------------------- /.github/workflows/main.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ryands17/fastify-prisma/HEAD/.github/workflows/main.yml -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ryands17/fastify-prisma/HEAD/.gitignore -------------------------------------------------------------------------------- /.husky/.gitignore: -------------------------------------------------------------------------------- 1 | _ 2 | -------------------------------------------------------------------------------- /.husky/pre-commit: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | . "$(dirname "$0")/_/husky.sh" 3 | 4 | yarn lint-staged -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ryands17/fastify-prisma/HEAD/README.md -------------------------------------------------------------------------------- /jest.config.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ryands17/fastify-prisma/HEAD/jest.config.js -------------------------------------------------------------------------------- /nodemon.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ryands17/fastify-prisma/HEAD/nodemon.json -------------------------------------------------------------------------------- /package.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ryands17/fastify-prisma/HEAD/package.json -------------------------------------------------------------------------------- /prisma/prisma-test-environment.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ryands17/fastify-prisma/HEAD/prisma/prisma-test-environment.js -------------------------------------------------------------------------------- /prisma/schema.prisma: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ryands17/fastify-prisma/HEAD/prisma/schema.prisma -------------------------------------------------------------------------------- /prisma/seed.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ryands17/fastify-prisma/HEAD/prisma/seed.ts -------------------------------------------------------------------------------- /setupTests.ts: -------------------------------------------------------------------------------- 1 | jest.setTimeout(10000) 2 | 3 | export {} 4 | -------------------------------------------------------------------------------- /src/app.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ryands17/fastify-prisma/HEAD/src/app.ts -------------------------------------------------------------------------------- /src/controllers/auth.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ryands17/fastify-prisma/HEAD/src/controllers/auth.ts -------------------------------------------------------------------------------- /src/controllers/index.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ryands17/fastify-prisma/HEAD/src/controllers/index.ts -------------------------------------------------------------------------------- /src/controllers/user.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ryands17/fastify-prisma/HEAD/src/controllers/user.ts -------------------------------------------------------------------------------- /src/globals.d.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ryands17/fastify-prisma/HEAD/src/globals.d.ts -------------------------------------------------------------------------------- /src/helpers/errors.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ryands17/fastify-prisma/HEAD/src/helpers/errors.ts -------------------------------------------------------------------------------- /src/helpers/utils.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ryands17/fastify-prisma/HEAD/src/helpers/utils.ts -------------------------------------------------------------------------------- /src/index.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ryands17/fastify-prisma/HEAD/src/index.ts -------------------------------------------------------------------------------- /src/middleware/auth.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ryands17/fastify-prisma/HEAD/src/middleware/auth.ts -------------------------------------------------------------------------------- /src/middleware/index.ts: -------------------------------------------------------------------------------- 1 | export * from './auth' 2 | -------------------------------------------------------------------------------- /src/routes/index.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ryands17/fastify-prisma/HEAD/src/routes/index.ts -------------------------------------------------------------------------------- /src/routes/routes.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ryands17/fastify-prisma/HEAD/src/routes/routes.ts -------------------------------------------------------------------------------- /tests/auth.test.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ryands17/fastify-prisma/HEAD/tests/auth.test.ts -------------------------------------------------------------------------------- /tests/helpers.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ryands17/fastify-prisma/HEAD/tests/helpers.ts -------------------------------------------------------------------------------- /tsconfig.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ryands17/fastify-prisma/HEAD/tsconfig.json -------------------------------------------------------------------------------- /yarn.lock: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ryands17/fastify-prisma/HEAD/yarn.lock --------------------------------------------------------------------------------