├── .env.dist ├── .github └── workflows │ └── main.yml ├── .gitignore ├── .nvmrc ├── .prettierrc ├── LICENSE ├── README.md ├── docker-compose.yml ├── nodemon.json ├── package.json ├── src ├── app.module.ts ├── auth │ ├── auth.controller.ts │ ├── auth.module.ts │ ├── auth.service.spec.ts │ ├── auth.service.ts │ ├── index.ts │ ├── interfaces │ │ ├── index.ts │ │ └── jwt-payload.interface.ts │ └── jwt.strategy.ts ├── blog │ ├── blog.controller.ts │ ├── blog.module.ts │ ├── blog.service.spec.ts │ ├── blog.service.ts │ ├── index.ts │ ├── slug.provider.spec.ts │ └── slug.provider.ts ├── config │ ├── database.ts │ ├── jwt.ts │ └── slugify.ts ├── entities │ ├── base.entity.ts │ ├── blog.entity.ts │ ├── index.ts │ └── user.entity.ts ├── main.hmr.ts ├── main.ts ├── models │ ├── auth.model.ts │ ├── blog.model.ts │ ├── index.ts │ └── user.model.ts ├── paginate │ ├── index.ts │ ├── pagination.options.interface.ts │ ├── pagination.results.interface.ts │ └── pagination.ts └── user │ ├── index.ts │ ├── user.controller.ts │ ├── user.module.ts │ ├── user.service.spec.ts │ └── user.service.ts ├── test ├── app.e2e-spec.ts └── jest-e2e.json ├── testdb.sh ├── tsconfig.json ├── tslint.json ├── webpack.config.js └── yarn.lock /.env.dist: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bashleigh/nestjs-blog/HEAD/.env.dist -------------------------------------------------------------------------------- /.github/workflows/main.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bashleigh/nestjs-blog/HEAD/.github/workflows/main.yml -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- 1 | .env 2 | node_modules/ 3 | dist/ 4 | coverage/ -------------------------------------------------------------------------------- /.nvmrc: -------------------------------------------------------------------------------- 1 | 14 -------------------------------------------------------------------------------- /.prettierrc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bashleigh/nestjs-blog/HEAD/.prettierrc -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bashleigh/nestjs-blog/HEAD/LICENSE -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bashleigh/nestjs-blog/HEAD/README.md -------------------------------------------------------------------------------- /docker-compose.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bashleigh/nestjs-blog/HEAD/docker-compose.yml -------------------------------------------------------------------------------- /nodemon.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bashleigh/nestjs-blog/HEAD/nodemon.json -------------------------------------------------------------------------------- /package.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bashleigh/nestjs-blog/HEAD/package.json -------------------------------------------------------------------------------- /src/app.module.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bashleigh/nestjs-blog/HEAD/src/app.module.ts -------------------------------------------------------------------------------- /src/auth/auth.controller.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bashleigh/nestjs-blog/HEAD/src/auth/auth.controller.ts -------------------------------------------------------------------------------- /src/auth/auth.module.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bashleigh/nestjs-blog/HEAD/src/auth/auth.module.ts -------------------------------------------------------------------------------- /src/auth/auth.service.spec.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bashleigh/nestjs-blog/HEAD/src/auth/auth.service.spec.ts -------------------------------------------------------------------------------- /src/auth/auth.service.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bashleigh/nestjs-blog/HEAD/src/auth/auth.service.ts -------------------------------------------------------------------------------- /src/auth/index.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bashleigh/nestjs-blog/HEAD/src/auth/index.ts -------------------------------------------------------------------------------- /src/auth/interfaces/index.ts: -------------------------------------------------------------------------------- 1 | export * from './jwt-payload.interface'; 2 | -------------------------------------------------------------------------------- /src/auth/interfaces/jwt-payload.interface.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bashleigh/nestjs-blog/HEAD/src/auth/interfaces/jwt-payload.interface.ts -------------------------------------------------------------------------------- /src/auth/jwt.strategy.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bashleigh/nestjs-blog/HEAD/src/auth/jwt.strategy.ts -------------------------------------------------------------------------------- /src/blog/blog.controller.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bashleigh/nestjs-blog/HEAD/src/blog/blog.controller.ts -------------------------------------------------------------------------------- /src/blog/blog.module.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bashleigh/nestjs-blog/HEAD/src/blog/blog.module.ts -------------------------------------------------------------------------------- /src/blog/blog.service.spec.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bashleigh/nestjs-blog/HEAD/src/blog/blog.service.spec.ts -------------------------------------------------------------------------------- /src/blog/blog.service.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bashleigh/nestjs-blog/HEAD/src/blog/blog.service.ts -------------------------------------------------------------------------------- /src/blog/index.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bashleigh/nestjs-blog/HEAD/src/blog/index.ts -------------------------------------------------------------------------------- /src/blog/slug.provider.spec.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bashleigh/nestjs-blog/HEAD/src/blog/slug.provider.spec.ts -------------------------------------------------------------------------------- /src/blog/slug.provider.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bashleigh/nestjs-blog/HEAD/src/blog/slug.provider.ts -------------------------------------------------------------------------------- /src/config/database.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bashleigh/nestjs-blog/HEAD/src/config/database.ts -------------------------------------------------------------------------------- /src/config/jwt.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bashleigh/nestjs-blog/HEAD/src/config/jwt.ts -------------------------------------------------------------------------------- /src/config/slugify.ts: -------------------------------------------------------------------------------- 1 | export default { 2 | replacement: '-', 3 | lower: true, 4 | }; 5 | -------------------------------------------------------------------------------- /src/entities/base.entity.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bashleigh/nestjs-blog/HEAD/src/entities/base.entity.ts -------------------------------------------------------------------------------- /src/entities/blog.entity.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bashleigh/nestjs-blog/HEAD/src/entities/blog.entity.ts -------------------------------------------------------------------------------- /src/entities/index.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bashleigh/nestjs-blog/HEAD/src/entities/index.ts -------------------------------------------------------------------------------- /src/entities/user.entity.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bashleigh/nestjs-blog/HEAD/src/entities/user.entity.ts -------------------------------------------------------------------------------- /src/main.hmr.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bashleigh/nestjs-blog/HEAD/src/main.hmr.ts -------------------------------------------------------------------------------- /src/main.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bashleigh/nestjs-blog/HEAD/src/main.ts -------------------------------------------------------------------------------- /src/models/auth.model.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bashleigh/nestjs-blog/HEAD/src/models/auth.model.ts -------------------------------------------------------------------------------- /src/models/blog.model.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bashleigh/nestjs-blog/HEAD/src/models/blog.model.ts -------------------------------------------------------------------------------- /src/models/index.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bashleigh/nestjs-blog/HEAD/src/models/index.ts -------------------------------------------------------------------------------- /src/models/user.model.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bashleigh/nestjs-blog/HEAD/src/models/user.model.ts -------------------------------------------------------------------------------- /src/paginate/index.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bashleigh/nestjs-blog/HEAD/src/paginate/index.ts -------------------------------------------------------------------------------- /src/paginate/pagination.options.interface.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bashleigh/nestjs-blog/HEAD/src/paginate/pagination.options.interface.ts -------------------------------------------------------------------------------- /src/paginate/pagination.results.interface.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bashleigh/nestjs-blog/HEAD/src/paginate/pagination.results.interface.ts -------------------------------------------------------------------------------- /src/paginate/pagination.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bashleigh/nestjs-blog/HEAD/src/paginate/pagination.ts -------------------------------------------------------------------------------- /src/user/index.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bashleigh/nestjs-blog/HEAD/src/user/index.ts -------------------------------------------------------------------------------- /src/user/user.controller.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bashleigh/nestjs-blog/HEAD/src/user/user.controller.ts -------------------------------------------------------------------------------- /src/user/user.module.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bashleigh/nestjs-blog/HEAD/src/user/user.module.ts -------------------------------------------------------------------------------- /src/user/user.service.spec.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bashleigh/nestjs-blog/HEAD/src/user/user.service.spec.ts -------------------------------------------------------------------------------- /src/user/user.service.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bashleigh/nestjs-blog/HEAD/src/user/user.service.ts -------------------------------------------------------------------------------- /test/app.e2e-spec.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bashleigh/nestjs-blog/HEAD/test/app.e2e-spec.ts -------------------------------------------------------------------------------- /test/jest-e2e.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bashleigh/nestjs-blog/HEAD/test/jest-e2e.json -------------------------------------------------------------------------------- /testdb.sh: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bashleigh/nestjs-blog/HEAD/testdb.sh -------------------------------------------------------------------------------- /tsconfig.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bashleigh/nestjs-blog/HEAD/tsconfig.json -------------------------------------------------------------------------------- /tslint.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bashleigh/nestjs-blog/HEAD/tslint.json -------------------------------------------------------------------------------- /webpack.config.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bashleigh/nestjs-blog/HEAD/webpack.config.js -------------------------------------------------------------------------------- /yarn.lock: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bashleigh/nestjs-blog/HEAD/yarn.lock --------------------------------------------------------------------------------