├── .gitignore ├── .prettierrc ├── LICENSE ├── README.md ├── angular.json ├── browserlist ├── client ├── app │ ├── app-routing.module.ts │ ├── app.component.html │ ├── app.component.scss │ ├── app.component.spec.ts │ ├── app.component.ts │ ├── app.module.ts │ ├── app.server.module.ts │ ├── common │ │ └── interceptors │ │ │ └── universal.interceptor.ts │ └── modules │ │ └── .gitkeep ├── assets │ └── .gitkeep ├── e2e │ ├── app │ │ ├── app.e2e-spec.ts │ │ └── app.po.ts │ ├── protractor.conf.js │ └── tsconfig.json ├── environments │ ├── environment.prod.ts │ └── environment.ts ├── favicon.ico ├── index.html ├── jest.spec.json ├── main.server.ts ├── main.ts ├── polyfills.ts ├── styles.scss ├── tsconfig.client.json ├── tsconfig.server.json └── tsconfig.spec.json ├── nest-cli.json ├── package.json ├── serve-script.js ├── server ├── app.module.ts ├── common │ ├── decorators │ │ ├── exceptionHandlers │ │ │ └── entityNotFound.exception-handler.decorator.ts │ │ ├── loggedInUser.decorator.ts │ │ └── requestedUser.decorator.ts │ ├── enums │ │ └── cookie.enum.ts │ ├── exceptions │ │ └── entityNotFound.exception.ts │ ├── filters │ │ ├── badRequestException.filter.ts │ │ ├── entityNotFoundException.filter.ts │ │ └── httpException.filter.ts │ ├── guards │ │ └── fetchRequestedUser.guard.ts │ ├── interfaces │ │ └── responseError.ts │ ├── typeorm │ │ ├── customTypes.ts │ │ ├── entities │ │ │ └── SoftDeletableEntity.ts │ │ └── repositories │ │ │ ├── TransactionalRepository.ts │ │ │ └── TransactionalSoftDeletableRepository.ts │ └── utilities │ │ └── buildResponseError.ts ├── e2e │ └── jest.e2e.json ├── environments │ ├── app.ts │ ├── database.ts │ ├── jwt.ts │ └── local │ │ ├── app.ts │ │ ├── database.ts │ │ └── jwt.ts ├── jest.spec.json ├── main.ts ├── migrations │ └── 1566380859753-users-create-table.ts ├── modules │ ├── authentication │ │ ├── auth.controller.ts │ │ ├── auth.module.ts │ │ ├── auth.service.ts │ │ ├── dtos │ │ │ └── loginUser.dto.ts │ │ ├── strategies │ │ │ ├── jwt.strategy.ts │ │ │ └── local.strategy.ts │ │ └── tests │ │ │ ├── auth.service.spec.ts │ │ │ └── fixtures │ │ │ ├── data │ │ │ ├── credentials.fake.ts │ │ │ ├── password.fake.ts │ │ │ └── user.fake.ts │ │ │ └── mocks │ │ │ ├── jwt.service.ts │ │ │ └── user.service.ts │ └── user │ │ ├── dtos │ │ └── createUser.dto.ts │ │ ├── tests │ │ └── users.service.spec.ts │ │ ├── user.const.ts │ │ ├── user.controller.ts │ │ ├── user.entity.ts │ │ ├── user.module.ts │ │ ├── user.repository.ts │ │ ├── user.service.ts │ │ └── user.subscriber-entity.ts └── tsconfig.json ├── tsconfig.json └── tslint.json /.gitignore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/adrien2p/teanjs/HEAD/.gitignore -------------------------------------------------------------------------------- /.prettierrc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/adrien2p/teanjs/HEAD/.prettierrc -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/adrien2p/teanjs/HEAD/LICENSE -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/adrien2p/teanjs/HEAD/README.md -------------------------------------------------------------------------------- /angular.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/adrien2p/teanjs/HEAD/angular.json -------------------------------------------------------------------------------- /browserlist: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/adrien2p/teanjs/HEAD/browserlist -------------------------------------------------------------------------------- /client/app/app-routing.module.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/adrien2p/teanjs/HEAD/client/app/app-routing.module.ts -------------------------------------------------------------------------------- /client/app/app.component.html: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/adrien2p/teanjs/HEAD/client/app/app.component.html -------------------------------------------------------------------------------- /client/app/app.component.scss: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /client/app/app.component.spec.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/adrien2p/teanjs/HEAD/client/app/app.component.spec.ts -------------------------------------------------------------------------------- /client/app/app.component.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/adrien2p/teanjs/HEAD/client/app/app.component.ts -------------------------------------------------------------------------------- /client/app/app.module.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/adrien2p/teanjs/HEAD/client/app/app.module.ts -------------------------------------------------------------------------------- /client/app/app.server.module.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/adrien2p/teanjs/HEAD/client/app/app.server.module.ts -------------------------------------------------------------------------------- /client/app/common/interceptors/universal.interceptor.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/adrien2p/teanjs/HEAD/client/app/common/interceptors/universal.interceptor.ts -------------------------------------------------------------------------------- /client/app/modules/.gitkeep: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /client/assets/.gitkeep: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /client/e2e/app/app.e2e-spec.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/adrien2p/teanjs/HEAD/client/e2e/app/app.e2e-spec.ts -------------------------------------------------------------------------------- /client/e2e/app/app.po.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/adrien2p/teanjs/HEAD/client/e2e/app/app.po.ts -------------------------------------------------------------------------------- /client/e2e/protractor.conf.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/adrien2p/teanjs/HEAD/client/e2e/protractor.conf.js -------------------------------------------------------------------------------- /client/e2e/tsconfig.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/adrien2p/teanjs/HEAD/client/e2e/tsconfig.json -------------------------------------------------------------------------------- /client/environments/environment.prod.ts: -------------------------------------------------------------------------------- 1 | export const environment = { 2 | production: true 3 | }; 4 | -------------------------------------------------------------------------------- /client/environments/environment.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/adrien2p/teanjs/HEAD/client/environments/environment.ts -------------------------------------------------------------------------------- /client/favicon.ico: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/adrien2p/teanjs/HEAD/client/favicon.ico -------------------------------------------------------------------------------- /client/index.html: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/adrien2p/teanjs/HEAD/client/index.html -------------------------------------------------------------------------------- /client/jest.spec.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/adrien2p/teanjs/HEAD/client/jest.spec.json -------------------------------------------------------------------------------- /client/main.server.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/adrien2p/teanjs/HEAD/client/main.server.ts -------------------------------------------------------------------------------- /client/main.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/adrien2p/teanjs/HEAD/client/main.ts -------------------------------------------------------------------------------- /client/polyfills.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/adrien2p/teanjs/HEAD/client/polyfills.ts -------------------------------------------------------------------------------- /client/styles.scss: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/adrien2p/teanjs/HEAD/client/styles.scss -------------------------------------------------------------------------------- /client/tsconfig.client.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/adrien2p/teanjs/HEAD/client/tsconfig.client.json -------------------------------------------------------------------------------- /client/tsconfig.server.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/adrien2p/teanjs/HEAD/client/tsconfig.server.json -------------------------------------------------------------------------------- /client/tsconfig.spec.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/adrien2p/teanjs/HEAD/client/tsconfig.spec.json -------------------------------------------------------------------------------- /nest-cli.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/adrien2p/teanjs/HEAD/nest-cli.json -------------------------------------------------------------------------------- /package.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/adrien2p/teanjs/HEAD/package.json -------------------------------------------------------------------------------- /serve-script.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/adrien2p/teanjs/HEAD/serve-script.js -------------------------------------------------------------------------------- /server/app.module.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/adrien2p/teanjs/HEAD/server/app.module.ts -------------------------------------------------------------------------------- /server/common/decorators/exceptionHandlers/entityNotFound.exception-handler.decorator.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/adrien2p/teanjs/HEAD/server/common/decorators/exceptionHandlers/entityNotFound.exception-handler.decorator.ts -------------------------------------------------------------------------------- /server/common/decorators/loggedInUser.decorator.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/adrien2p/teanjs/HEAD/server/common/decorators/loggedInUser.decorator.ts -------------------------------------------------------------------------------- /server/common/decorators/requestedUser.decorator.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/adrien2p/teanjs/HEAD/server/common/decorators/requestedUser.decorator.ts -------------------------------------------------------------------------------- /server/common/enums/cookie.enum.ts: -------------------------------------------------------------------------------- 1 | export enum COOKIE { 2 | ACCESS_TOKEN = 'access_token' 3 | } 4 | -------------------------------------------------------------------------------- /server/common/exceptions/entityNotFound.exception.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/adrien2p/teanjs/HEAD/server/common/exceptions/entityNotFound.exception.ts -------------------------------------------------------------------------------- /server/common/filters/badRequestException.filter.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/adrien2p/teanjs/HEAD/server/common/filters/badRequestException.filter.ts -------------------------------------------------------------------------------- /server/common/filters/entityNotFoundException.filter.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/adrien2p/teanjs/HEAD/server/common/filters/entityNotFoundException.filter.ts -------------------------------------------------------------------------------- /server/common/filters/httpException.filter.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/adrien2p/teanjs/HEAD/server/common/filters/httpException.filter.ts -------------------------------------------------------------------------------- /server/common/guards/fetchRequestedUser.guard.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/adrien2p/teanjs/HEAD/server/common/guards/fetchRequestedUser.guard.ts -------------------------------------------------------------------------------- /server/common/interfaces/responseError.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/adrien2p/teanjs/HEAD/server/common/interfaces/responseError.ts -------------------------------------------------------------------------------- /server/common/typeorm/customTypes.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/adrien2p/teanjs/HEAD/server/common/typeorm/customTypes.ts -------------------------------------------------------------------------------- /server/common/typeorm/entities/SoftDeletableEntity.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/adrien2p/teanjs/HEAD/server/common/typeorm/entities/SoftDeletableEntity.ts -------------------------------------------------------------------------------- /server/common/typeorm/repositories/TransactionalRepository.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/adrien2p/teanjs/HEAD/server/common/typeorm/repositories/TransactionalRepository.ts -------------------------------------------------------------------------------- /server/common/typeorm/repositories/TransactionalSoftDeletableRepository.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/adrien2p/teanjs/HEAD/server/common/typeorm/repositories/TransactionalSoftDeletableRepository.ts -------------------------------------------------------------------------------- /server/common/utilities/buildResponseError.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/adrien2p/teanjs/HEAD/server/common/utilities/buildResponseError.ts -------------------------------------------------------------------------------- /server/e2e/jest.e2e.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/adrien2p/teanjs/HEAD/server/e2e/jest.e2e.json -------------------------------------------------------------------------------- /server/environments/app.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/adrien2p/teanjs/HEAD/server/environments/app.ts -------------------------------------------------------------------------------- /server/environments/database.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/adrien2p/teanjs/HEAD/server/environments/database.ts -------------------------------------------------------------------------------- /server/environments/jwt.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/adrien2p/teanjs/HEAD/server/environments/jwt.ts -------------------------------------------------------------------------------- /server/environments/local/app.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/adrien2p/teanjs/HEAD/server/environments/local/app.ts -------------------------------------------------------------------------------- /server/environments/local/database.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/adrien2p/teanjs/HEAD/server/environments/local/database.ts -------------------------------------------------------------------------------- /server/environments/local/jwt.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/adrien2p/teanjs/HEAD/server/environments/local/jwt.ts -------------------------------------------------------------------------------- /server/jest.spec.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/adrien2p/teanjs/HEAD/server/jest.spec.json -------------------------------------------------------------------------------- /server/main.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/adrien2p/teanjs/HEAD/server/main.ts -------------------------------------------------------------------------------- /server/migrations/1566380859753-users-create-table.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/adrien2p/teanjs/HEAD/server/migrations/1566380859753-users-create-table.ts -------------------------------------------------------------------------------- /server/modules/authentication/auth.controller.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/adrien2p/teanjs/HEAD/server/modules/authentication/auth.controller.ts -------------------------------------------------------------------------------- /server/modules/authentication/auth.module.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/adrien2p/teanjs/HEAD/server/modules/authentication/auth.module.ts -------------------------------------------------------------------------------- /server/modules/authentication/auth.service.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/adrien2p/teanjs/HEAD/server/modules/authentication/auth.service.ts -------------------------------------------------------------------------------- /server/modules/authentication/dtos/loginUser.dto.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/adrien2p/teanjs/HEAD/server/modules/authentication/dtos/loginUser.dto.ts -------------------------------------------------------------------------------- /server/modules/authentication/strategies/jwt.strategy.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/adrien2p/teanjs/HEAD/server/modules/authentication/strategies/jwt.strategy.ts -------------------------------------------------------------------------------- /server/modules/authentication/strategies/local.strategy.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/adrien2p/teanjs/HEAD/server/modules/authentication/strategies/local.strategy.ts -------------------------------------------------------------------------------- /server/modules/authentication/tests/auth.service.spec.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/adrien2p/teanjs/HEAD/server/modules/authentication/tests/auth.service.spec.ts -------------------------------------------------------------------------------- /server/modules/authentication/tests/fixtures/data/credentials.fake.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/adrien2p/teanjs/HEAD/server/modules/authentication/tests/fixtures/data/credentials.fake.ts -------------------------------------------------------------------------------- /server/modules/authentication/tests/fixtures/data/password.fake.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/adrien2p/teanjs/HEAD/server/modules/authentication/tests/fixtures/data/password.fake.ts -------------------------------------------------------------------------------- /server/modules/authentication/tests/fixtures/data/user.fake.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/adrien2p/teanjs/HEAD/server/modules/authentication/tests/fixtures/data/user.fake.ts -------------------------------------------------------------------------------- /server/modules/authentication/tests/fixtures/mocks/jwt.service.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/adrien2p/teanjs/HEAD/server/modules/authentication/tests/fixtures/mocks/jwt.service.ts -------------------------------------------------------------------------------- /server/modules/authentication/tests/fixtures/mocks/user.service.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/adrien2p/teanjs/HEAD/server/modules/authentication/tests/fixtures/mocks/user.service.ts -------------------------------------------------------------------------------- /server/modules/user/dtos/createUser.dto.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/adrien2p/teanjs/HEAD/server/modules/user/dtos/createUser.dto.ts -------------------------------------------------------------------------------- /server/modules/user/tests/users.service.spec.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/adrien2p/teanjs/HEAD/server/modules/user/tests/users.service.spec.ts -------------------------------------------------------------------------------- /server/modules/user/user.const.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/adrien2p/teanjs/HEAD/server/modules/user/user.const.ts -------------------------------------------------------------------------------- /server/modules/user/user.controller.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/adrien2p/teanjs/HEAD/server/modules/user/user.controller.ts -------------------------------------------------------------------------------- /server/modules/user/user.entity.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/adrien2p/teanjs/HEAD/server/modules/user/user.entity.ts -------------------------------------------------------------------------------- /server/modules/user/user.module.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/adrien2p/teanjs/HEAD/server/modules/user/user.module.ts -------------------------------------------------------------------------------- /server/modules/user/user.repository.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/adrien2p/teanjs/HEAD/server/modules/user/user.repository.ts -------------------------------------------------------------------------------- /server/modules/user/user.service.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/adrien2p/teanjs/HEAD/server/modules/user/user.service.ts -------------------------------------------------------------------------------- /server/modules/user/user.subscriber-entity.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/adrien2p/teanjs/HEAD/server/modules/user/user.subscriber-entity.ts -------------------------------------------------------------------------------- /server/tsconfig.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/adrien2p/teanjs/HEAD/server/tsconfig.json -------------------------------------------------------------------------------- /tsconfig.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/adrien2p/teanjs/HEAD/tsconfig.json -------------------------------------------------------------------------------- /tslint.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/adrien2p/teanjs/HEAD/tslint.json --------------------------------------------------------------------------------