├── .eslintrc.js ├── .github └── workflows │ └── main.yml ├── .gitignore ├── .prettierrc ├── README.md ├── datamodel.js ├── nest-cli.json ├── package.json ├── src ├── Procfile ├── app.controller.spec.ts ├── app.controller.ts ├── app.module.ts ├── app.service.ts ├── auth │ ├── admin-auth.guard.ts │ ├── auth.controller.ts │ ├── auth.module.ts │ ├── auth.service.ts │ ├── current-user.decorator.ts │ ├── dto │ │ └── login.dto.ts │ ├── jwt.strategy.ts │ ├── models │ │ └── connection.model.ts │ └── user-auth.guard.ts ├── common │ ├── constants.ts │ ├── dto │ │ └── find.dto.ts │ ├── exceptions.ts │ └── models │ │ ├── results-metadata.model.ts │ │ └── set-of.model.ts ├── database │ ├── database.module.ts │ ├── datasource.ts │ └── migrations │ │ └── 1658094737533-CreateEntities.ts ├── main.ts ├── transactions │ ├── dto │ │ ├── create-transaction.dto.ts │ │ ├── find-transactions.dto.ts │ │ └── update-transaction.dto.ts │ ├── entities │ │ └── transaction.entity.ts │ ├── enums │ │ ├── transaction-category.enum.ts │ │ └── transaction-type.enum.ts │ ├── models │ │ ├── transaction.model.ts │ │ └── transactions.model.ts │ ├── transactions.controller.spec.ts │ ├── transactions.controller.ts │ ├── transactions.module.ts │ ├── transactions.service.spec.ts │ └── transactions.service.ts └── users │ ├── account.controller.ts │ ├── dto │ ├── create-user.dto.ts │ ├── find-users.dto.ts │ └── update-user.dto.ts │ ├── entities │ └── user.entity.ts │ ├── models │ ├── user.model.ts │ └── users.model.ts │ ├── users.controller.spec.ts │ ├── users.controller.ts │ ├── users.module.ts │ ├── users.service.spec.ts │ └── users.service.ts ├── test ├── app.e2e-spec.ts └── jest-e2e.json ├── tsconfig.build.json └── tsconfig.json /.eslintrc.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/chrisbalola/accounting-app-api/HEAD/.eslintrc.js -------------------------------------------------------------------------------- /.github/workflows/main.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/chrisbalola/accounting-app-api/HEAD/.github/workflows/main.yml -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/chrisbalola/accounting-app-api/HEAD/.gitignore -------------------------------------------------------------------------------- /.prettierrc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/chrisbalola/accounting-app-api/HEAD/.prettierrc -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/chrisbalola/accounting-app-api/HEAD/README.md -------------------------------------------------------------------------------- /datamodel.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/chrisbalola/accounting-app-api/HEAD/datamodel.js -------------------------------------------------------------------------------- /nest-cli.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/chrisbalola/accounting-app-api/HEAD/nest-cli.json -------------------------------------------------------------------------------- /package.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/chrisbalola/accounting-app-api/HEAD/package.json -------------------------------------------------------------------------------- /src/Procfile: -------------------------------------------------------------------------------- 1 | web: npm run start:prod -------------------------------------------------------------------------------- /src/app.controller.spec.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/chrisbalola/accounting-app-api/HEAD/src/app.controller.spec.ts -------------------------------------------------------------------------------- /src/app.controller.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/chrisbalola/accounting-app-api/HEAD/src/app.controller.ts -------------------------------------------------------------------------------- /src/app.module.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/chrisbalola/accounting-app-api/HEAD/src/app.module.ts -------------------------------------------------------------------------------- /src/app.service.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/chrisbalola/accounting-app-api/HEAD/src/app.service.ts -------------------------------------------------------------------------------- /src/auth/admin-auth.guard.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/chrisbalola/accounting-app-api/HEAD/src/auth/admin-auth.guard.ts -------------------------------------------------------------------------------- /src/auth/auth.controller.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/chrisbalola/accounting-app-api/HEAD/src/auth/auth.controller.ts -------------------------------------------------------------------------------- /src/auth/auth.module.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/chrisbalola/accounting-app-api/HEAD/src/auth/auth.module.ts -------------------------------------------------------------------------------- /src/auth/auth.service.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/chrisbalola/accounting-app-api/HEAD/src/auth/auth.service.ts -------------------------------------------------------------------------------- /src/auth/current-user.decorator.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/chrisbalola/accounting-app-api/HEAD/src/auth/current-user.decorator.ts -------------------------------------------------------------------------------- /src/auth/dto/login.dto.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/chrisbalola/accounting-app-api/HEAD/src/auth/dto/login.dto.ts -------------------------------------------------------------------------------- /src/auth/jwt.strategy.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/chrisbalola/accounting-app-api/HEAD/src/auth/jwt.strategy.ts -------------------------------------------------------------------------------- /src/auth/models/connection.model.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/chrisbalola/accounting-app-api/HEAD/src/auth/models/connection.model.ts -------------------------------------------------------------------------------- /src/auth/user-auth.guard.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/chrisbalola/accounting-app-api/HEAD/src/auth/user-auth.guard.ts -------------------------------------------------------------------------------- /src/common/constants.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/chrisbalola/accounting-app-api/HEAD/src/common/constants.ts -------------------------------------------------------------------------------- /src/common/dto/find.dto.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/chrisbalola/accounting-app-api/HEAD/src/common/dto/find.dto.ts -------------------------------------------------------------------------------- /src/common/exceptions.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/chrisbalola/accounting-app-api/HEAD/src/common/exceptions.ts -------------------------------------------------------------------------------- /src/common/models/results-metadata.model.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/chrisbalola/accounting-app-api/HEAD/src/common/models/results-metadata.model.ts -------------------------------------------------------------------------------- /src/common/models/set-of.model.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/chrisbalola/accounting-app-api/HEAD/src/common/models/set-of.model.ts -------------------------------------------------------------------------------- /src/database/database.module.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/chrisbalola/accounting-app-api/HEAD/src/database/database.module.ts -------------------------------------------------------------------------------- /src/database/datasource.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/chrisbalola/accounting-app-api/HEAD/src/database/datasource.ts -------------------------------------------------------------------------------- /src/database/migrations/1658094737533-CreateEntities.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/chrisbalola/accounting-app-api/HEAD/src/database/migrations/1658094737533-CreateEntities.ts -------------------------------------------------------------------------------- /src/main.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/chrisbalola/accounting-app-api/HEAD/src/main.ts -------------------------------------------------------------------------------- /src/transactions/dto/create-transaction.dto.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/chrisbalola/accounting-app-api/HEAD/src/transactions/dto/create-transaction.dto.ts -------------------------------------------------------------------------------- /src/transactions/dto/find-transactions.dto.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/chrisbalola/accounting-app-api/HEAD/src/transactions/dto/find-transactions.dto.ts -------------------------------------------------------------------------------- /src/transactions/dto/update-transaction.dto.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/chrisbalola/accounting-app-api/HEAD/src/transactions/dto/update-transaction.dto.ts -------------------------------------------------------------------------------- /src/transactions/entities/transaction.entity.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/chrisbalola/accounting-app-api/HEAD/src/transactions/entities/transaction.entity.ts -------------------------------------------------------------------------------- /src/transactions/enums/transaction-category.enum.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/chrisbalola/accounting-app-api/HEAD/src/transactions/enums/transaction-category.enum.ts -------------------------------------------------------------------------------- /src/transactions/enums/transaction-type.enum.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/chrisbalola/accounting-app-api/HEAD/src/transactions/enums/transaction-type.enum.ts -------------------------------------------------------------------------------- /src/transactions/models/transaction.model.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/chrisbalola/accounting-app-api/HEAD/src/transactions/models/transaction.model.ts -------------------------------------------------------------------------------- /src/transactions/models/transactions.model.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/chrisbalola/accounting-app-api/HEAD/src/transactions/models/transactions.model.ts -------------------------------------------------------------------------------- /src/transactions/transactions.controller.spec.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/chrisbalola/accounting-app-api/HEAD/src/transactions/transactions.controller.spec.ts -------------------------------------------------------------------------------- /src/transactions/transactions.controller.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/chrisbalola/accounting-app-api/HEAD/src/transactions/transactions.controller.ts -------------------------------------------------------------------------------- /src/transactions/transactions.module.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/chrisbalola/accounting-app-api/HEAD/src/transactions/transactions.module.ts -------------------------------------------------------------------------------- /src/transactions/transactions.service.spec.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/chrisbalola/accounting-app-api/HEAD/src/transactions/transactions.service.spec.ts -------------------------------------------------------------------------------- /src/transactions/transactions.service.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/chrisbalola/accounting-app-api/HEAD/src/transactions/transactions.service.ts -------------------------------------------------------------------------------- /src/users/account.controller.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/chrisbalola/accounting-app-api/HEAD/src/users/account.controller.ts -------------------------------------------------------------------------------- /src/users/dto/create-user.dto.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/chrisbalola/accounting-app-api/HEAD/src/users/dto/create-user.dto.ts -------------------------------------------------------------------------------- /src/users/dto/find-users.dto.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/chrisbalola/accounting-app-api/HEAD/src/users/dto/find-users.dto.ts -------------------------------------------------------------------------------- /src/users/dto/update-user.dto.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/chrisbalola/accounting-app-api/HEAD/src/users/dto/update-user.dto.ts -------------------------------------------------------------------------------- /src/users/entities/user.entity.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/chrisbalola/accounting-app-api/HEAD/src/users/entities/user.entity.ts -------------------------------------------------------------------------------- /src/users/models/user.model.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/chrisbalola/accounting-app-api/HEAD/src/users/models/user.model.ts -------------------------------------------------------------------------------- /src/users/models/users.model.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/chrisbalola/accounting-app-api/HEAD/src/users/models/users.model.ts -------------------------------------------------------------------------------- /src/users/users.controller.spec.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/chrisbalola/accounting-app-api/HEAD/src/users/users.controller.spec.ts -------------------------------------------------------------------------------- /src/users/users.controller.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/chrisbalola/accounting-app-api/HEAD/src/users/users.controller.ts -------------------------------------------------------------------------------- /src/users/users.module.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/chrisbalola/accounting-app-api/HEAD/src/users/users.module.ts -------------------------------------------------------------------------------- /src/users/users.service.spec.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/chrisbalola/accounting-app-api/HEAD/src/users/users.service.spec.ts -------------------------------------------------------------------------------- /src/users/users.service.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/chrisbalola/accounting-app-api/HEAD/src/users/users.service.ts -------------------------------------------------------------------------------- /test/app.e2e-spec.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/chrisbalola/accounting-app-api/HEAD/test/app.e2e-spec.ts -------------------------------------------------------------------------------- /test/jest-e2e.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/chrisbalola/accounting-app-api/HEAD/test/jest-e2e.json -------------------------------------------------------------------------------- /tsconfig.build.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/chrisbalola/accounting-app-api/HEAD/tsconfig.build.json -------------------------------------------------------------------------------- /tsconfig.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/chrisbalola/accounting-app-api/HEAD/tsconfig.json --------------------------------------------------------------------------------