├── .gitignore ├── README.md ├── backend ├── .env.example ├── .eslintrc.js ├── .prettierrc ├── .swcrc ├── LICENSE ├── README.md ├── codecov.yml ├── commitlint.config.js ├── migrations │ └── migrate-mongo-config.ts ├── nest-cli.json ├── package-lock.json ├── package.json ├── prisma │ └── schema.prisma ├── src │ ├── app.module.ts │ ├── auth │ │ ├── auth.constants.ts │ │ ├── auth.controller.ts │ │ ├── auth.module.ts │ │ ├── auth.service.ts │ │ ├── guard │ │ │ ├── has-roles.decorator.ts │ │ │ ├── jwt-auth.guard.ts │ │ │ ├── local-auth.guard.ts │ │ │ ├── roles.guard.ts │ │ │ └── skip-auth.guard.ts │ │ ├── interface │ │ │ ├── access-token.interface.ts │ │ │ ├── authenticated-request.interface.ts │ │ │ ├── jwt-payload.interface.ts │ │ │ └── user-principal.interface.ts │ │ ├── session.serializer.ts │ │ └── strategy │ │ │ ├── jwt.strategy.ts │ │ │ └── local.strategy.ts │ ├── common │ │ └── middleware │ │ │ ├── auth.middleware.ts │ │ │ └── logger.middleware.ts │ ├── config │ │ ├── jwt.config.ts │ │ ├── mongodb.config.ts │ │ ├── sendgrid.config.ts │ │ └── swagger.config.ts │ ├── constants │ │ └── errors.constants.ts │ ├── filters │ │ ├── access-exception.filter.ts │ │ ├── all-exception.filter.ts │ │ ├── bad-request-exception.filter.ts │ │ ├── base-exception.filter.ts │ │ ├── not-found-exception.filter.ts │ │ ├── throttler-exception.filter.ts │ │ ├── validation-exception-factory.ts │ │ ├── validation-exception.filter.ts │ │ └── validation.exception.ts │ ├── interceptors │ │ └── transform.interceptor.ts │ ├── logger │ │ ├── logger.decorator.ts │ │ ├── logger.module.ts │ │ ├── logger.providers.ts │ │ └── logger.service.ts │ ├── main.ts │ ├── models │ │ ├── game-history.model.ts │ │ ├── game-profile.model.ts │ │ ├── referral.model.ts │ │ ├── task-history.model.ts │ │ ├── task.model.ts │ │ ├── telegram-user.model.ts │ │ ├── user-session.model.ts │ │ └── user.model.ts │ ├── modules │ │ ├── game-history │ │ │ ├── dto │ │ │ │ ├── request.dto.ts │ │ │ │ └── response.dto.ts │ │ │ ├── game-history.controller.ts │ │ │ ├── game-history.module.ts │ │ │ └── game-history.service.ts │ │ ├── game-profile │ │ │ ├── dto │ │ │ │ ├── request.dto.ts │ │ │ │ └── response.dto.ts │ │ │ ├── game-profile.controller.ts │ │ │ ├── game-profile.module.ts │ │ │ └── game-profile.service.ts │ │ ├── health │ │ │ ├── health.controller.ts │ │ │ └── health.module.ts │ │ ├── prisma │ │ │ ├── prisma.module.ts │ │ │ └── prisma.service.ts │ │ ├── referral │ │ │ ├── dto │ │ │ │ ├── request.dto.ts │ │ │ │ └── response.dto.ts │ │ │ ├── referral.controller.ts │ │ │ ├── referral.module.ts │ │ │ └── referral.service.ts │ │ ├── task-history │ │ │ ├── dto │ │ │ │ ├── request.dto.ts │ │ │ │ └── response.dto.ts │ │ │ ├── task-history.controller.ts │ │ │ ├── task-history.module.ts │ │ │ └── task-history.service.ts │ │ ├── task │ │ │ ├── dto │ │ │ │ ├── create-task.dto.ts │ │ │ │ ├── response.task.dto.ts │ │ │ │ └── update-task.dto.ts │ │ │ ├── task.controller.ts │ │ │ ├── task.module.ts │ │ │ └── task.service.ts │ │ ├── telegram-user │ │ │ ├── dto │ │ │ │ └── response.dto.ts │ │ │ ├── telegram-user.controller.ts │ │ │ ├── telegram-user.module.ts │ │ │ └── telegram-user.service.ts │ │ ├── telegram │ │ │ ├── interfaces │ │ │ │ └── telegram.interface.ts │ │ │ ├── telegram.controller.ts │ │ │ ├── telegram.module.ts │ │ │ └── telegram.service.ts │ │ └── user │ │ │ ├── user.controller.ts │ │ │ ├── user.module.ts │ │ │ └── user.service.ts │ └── shared │ │ ├── enum │ │ └── role-type.enum.ts │ │ └── pipe │ │ └── parse-object-id.pipe.ts ├── tsconfig.build.json └── tsconfig.json ├── docker ├── docker-compose.yml └── docker.txt ├── frontend ├── .env.example ├── .gitignore ├── .prettierrc ├── README.md ├── eslint.config.js ├── index.html ├── package-lock.json ├── package.json ├── public │ ├── images │ │ ├── bg.png │ │ ├── coin.svg │ │ ├── copy.svg │ │ ├── git-qr-code.ce34b3d3.png │ │ └── shiba.svg │ ├── sounds │ │ ├── 14728.mp3 │ │ └── coin-donation-2-180438.mp3 │ └── vite.svg ├── src │ ├── App.tsx │ ├── assets │ │ └── react.svg │ ├── components │ │ ├── Breadcrumb.tsx │ │ ├── PrivateRoute.tsx │ │ └── TokenHandler.tsx │ ├── contexts │ │ └── AuthContext.tsx │ ├── game │ │ ├── Coin.ts │ │ └── Face.ts │ ├── index.css │ ├── interfaces │ │ ├── IGameHistory.ts │ │ ├── IMe.ts │ │ ├── IReferred.ts │ │ └── ITask.ts │ ├── main.tsx │ ├── pages │ │ ├── History.tsx │ │ ├── Home.tsx │ │ ├── Referral.tsx │ │ ├── Task.tsx │ │ ├── TelegramLogin.tsx │ │ └── game │ │ │ ├── ControlPanel.tsx │ │ │ ├── Footer.tsx │ │ │ ├── GameTab.tsx │ │ │ └── ModalEnd.tsx │ ├── services │ │ ├── apiService.ts │ │ └── axiosInstance.ts │ ├── utils │ │ └── index.ts │ └── vite-env.d.ts ├── tsconfig.app.json ├── tsconfig.json ├── tsconfig.node.json └── vite.config.ts └── smart-contract └── smart-contract.txt /.gitignore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/batd92/telegram-mini-game/HEAD/.gitignore -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/batd92/telegram-mini-game/HEAD/README.md -------------------------------------------------------------------------------- /backend/.env.example: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/batd92/telegram-mini-game/HEAD/backend/.env.example -------------------------------------------------------------------------------- /backend/.eslintrc.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/batd92/telegram-mini-game/HEAD/backend/.eslintrc.js -------------------------------------------------------------------------------- /backend/.prettierrc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/batd92/telegram-mini-game/HEAD/backend/.prettierrc -------------------------------------------------------------------------------- /backend/.swcrc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/batd92/telegram-mini-game/HEAD/backend/.swcrc -------------------------------------------------------------------------------- /backend/LICENSE: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/batd92/telegram-mini-game/HEAD/backend/LICENSE -------------------------------------------------------------------------------- /backend/README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/batd92/telegram-mini-game/HEAD/backend/README.md -------------------------------------------------------------------------------- /backend/codecov.yml: -------------------------------------------------------------------------------- 1 | ignore: 2 | - "**/*stub.ts" 3 | -------------------------------------------------------------------------------- /backend/commitlint.config.js: -------------------------------------------------------------------------------- 1 | module.exports = { extends: ['@commitlint/config-conventional'] }; 2 | -------------------------------------------------------------------------------- /backend/migrations/migrate-mongo-config.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/batd92/telegram-mini-game/HEAD/backend/migrations/migrate-mongo-config.ts -------------------------------------------------------------------------------- /backend/nest-cli.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/batd92/telegram-mini-game/HEAD/backend/nest-cli.json -------------------------------------------------------------------------------- /backend/package-lock.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/batd92/telegram-mini-game/HEAD/backend/package-lock.json -------------------------------------------------------------------------------- /backend/package.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/batd92/telegram-mini-game/HEAD/backend/package.json -------------------------------------------------------------------------------- /backend/prisma/schema.prisma: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/batd92/telegram-mini-game/HEAD/backend/prisma/schema.prisma -------------------------------------------------------------------------------- /backend/src/app.module.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/batd92/telegram-mini-game/HEAD/backend/src/app.module.ts -------------------------------------------------------------------------------- /backend/src/auth/auth.constants.ts: -------------------------------------------------------------------------------- 1 | export const HAS_ROLES_KEY = 'has-roles'; 2 | -------------------------------------------------------------------------------- /backend/src/auth/auth.controller.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/batd92/telegram-mini-game/HEAD/backend/src/auth/auth.controller.ts -------------------------------------------------------------------------------- /backend/src/auth/auth.module.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/batd92/telegram-mini-game/HEAD/backend/src/auth/auth.module.ts -------------------------------------------------------------------------------- /backend/src/auth/auth.service.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/batd92/telegram-mini-game/HEAD/backend/src/auth/auth.service.ts -------------------------------------------------------------------------------- /backend/src/auth/guard/has-roles.decorator.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/batd92/telegram-mini-game/HEAD/backend/src/auth/guard/has-roles.decorator.ts -------------------------------------------------------------------------------- /backend/src/auth/guard/jwt-auth.guard.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/batd92/telegram-mini-game/HEAD/backend/src/auth/guard/jwt-auth.guard.ts -------------------------------------------------------------------------------- /backend/src/auth/guard/local-auth.guard.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/batd92/telegram-mini-game/HEAD/backend/src/auth/guard/local-auth.guard.ts -------------------------------------------------------------------------------- /backend/src/auth/guard/roles.guard.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/batd92/telegram-mini-game/HEAD/backend/src/auth/guard/roles.guard.ts -------------------------------------------------------------------------------- /backend/src/auth/guard/skip-auth.guard.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/batd92/telegram-mini-game/HEAD/backend/src/auth/guard/skip-auth.guard.ts -------------------------------------------------------------------------------- /backend/src/auth/interface/access-token.interface.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/batd92/telegram-mini-game/HEAD/backend/src/auth/interface/access-token.interface.ts -------------------------------------------------------------------------------- /backend/src/auth/interface/authenticated-request.interface.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/batd92/telegram-mini-game/HEAD/backend/src/auth/interface/authenticated-request.interface.ts -------------------------------------------------------------------------------- /backend/src/auth/interface/jwt-payload.interface.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/batd92/telegram-mini-game/HEAD/backend/src/auth/interface/jwt-payload.interface.ts -------------------------------------------------------------------------------- /backend/src/auth/interface/user-principal.interface.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/batd92/telegram-mini-game/HEAD/backend/src/auth/interface/user-principal.interface.ts -------------------------------------------------------------------------------- /backend/src/auth/session.serializer.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/batd92/telegram-mini-game/HEAD/backend/src/auth/session.serializer.ts -------------------------------------------------------------------------------- /backend/src/auth/strategy/jwt.strategy.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/batd92/telegram-mini-game/HEAD/backend/src/auth/strategy/jwt.strategy.ts -------------------------------------------------------------------------------- /backend/src/auth/strategy/local.strategy.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/batd92/telegram-mini-game/HEAD/backend/src/auth/strategy/local.strategy.ts -------------------------------------------------------------------------------- /backend/src/common/middleware/auth.middleware.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/batd92/telegram-mini-game/HEAD/backend/src/common/middleware/auth.middleware.ts -------------------------------------------------------------------------------- /backend/src/common/middleware/logger.middleware.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/batd92/telegram-mini-game/HEAD/backend/src/common/middleware/logger.middleware.ts -------------------------------------------------------------------------------- /backend/src/config/jwt.config.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/batd92/telegram-mini-game/HEAD/backend/src/config/jwt.config.ts -------------------------------------------------------------------------------- /backend/src/config/mongodb.config.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/batd92/telegram-mini-game/HEAD/backend/src/config/mongodb.config.ts -------------------------------------------------------------------------------- /backend/src/config/sendgrid.config.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/batd92/telegram-mini-game/HEAD/backend/src/config/sendgrid.config.ts -------------------------------------------------------------------------------- /backend/src/config/swagger.config.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/batd92/telegram-mini-game/HEAD/backend/src/config/swagger.config.ts -------------------------------------------------------------------------------- /backend/src/constants/errors.constants.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/batd92/telegram-mini-game/HEAD/backend/src/constants/errors.constants.ts -------------------------------------------------------------------------------- /backend/src/filters/access-exception.filter.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/batd92/telegram-mini-game/HEAD/backend/src/filters/access-exception.filter.ts -------------------------------------------------------------------------------- /backend/src/filters/all-exception.filter.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/batd92/telegram-mini-game/HEAD/backend/src/filters/all-exception.filter.ts -------------------------------------------------------------------------------- /backend/src/filters/bad-request-exception.filter.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/batd92/telegram-mini-game/HEAD/backend/src/filters/bad-request-exception.filter.ts -------------------------------------------------------------------------------- /backend/src/filters/base-exception.filter.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/batd92/telegram-mini-game/HEAD/backend/src/filters/base-exception.filter.ts -------------------------------------------------------------------------------- /backend/src/filters/not-found-exception.filter.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/batd92/telegram-mini-game/HEAD/backend/src/filters/not-found-exception.filter.ts -------------------------------------------------------------------------------- /backend/src/filters/throttler-exception.filter.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/batd92/telegram-mini-game/HEAD/backend/src/filters/throttler-exception.filter.ts -------------------------------------------------------------------------------- /backend/src/filters/validation-exception-factory.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/batd92/telegram-mini-game/HEAD/backend/src/filters/validation-exception-factory.ts -------------------------------------------------------------------------------- /backend/src/filters/validation-exception.filter.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/batd92/telegram-mini-game/HEAD/backend/src/filters/validation-exception.filter.ts -------------------------------------------------------------------------------- /backend/src/filters/validation.exception.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/batd92/telegram-mini-game/HEAD/backend/src/filters/validation.exception.ts -------------------------------------------------------------------------------- /backend/src/interceptors/transform.interceptor.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/batd92/telegram-mini-game/HEAD/backend/src/interceptors/transform.interceptor.ts -------------------------------------------------------------------------------- /backend/src/logger/logger.decorator.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/batd92/telegram-mini-game/HEAD/backend/src/logger/logger.decorator.ts -------------------------------------------------------------------------------- /backend/src/logger/logger.module.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/batd92/telegram-mini-game/HEAD/backend/src/logger/logger.module.ts -------------------------------------------------------------------------------- /backend/src/logger/logger.providers.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/batd92/telegram-mini-game/HEAD/backend/src/logger/logger.providers.ts -------------------------------------------------------------------------------- /backend/src/logger/logger.service.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/batd92/telegram-mini-game/HEAD/backend/src/logger/logger.service.ts -------------------------------------------------------------------------------- /backend/src/main.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/batd92/telegram-mini-game/HEAD/backend/src/main.ts -------------------------------------------------------------------------------- /backend/src/models/game-history.model.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/batd92/telegram-mini-game/HEAD/backend/src/models/game-history.model.ts -------------------------------------------------------------------------------- /backend/src/models/game-profile.model.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/batd92/telegram-mini-game/HEAD/backend/src/models/game-profile.model.ts -------------------------------------------------------------------------------- /backend/src/models/referral.model.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/batd92/telegram-mini-game/HEAD/backend/src/models/referral.model.ts -------------------------------------------------------------------------------- /backend/src/models/task-history.model.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/batd92/telegram-mini-game/HEAD/backend/src/models/task-history.model.ts -------------------------------------------------------------------------------- /backend/src/models/task.model.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/batd92/telegram-mini-game/HEAD/backend/src/models/task.model.ts -------------------------------------------------------------------------------- /backend/src/models/telegram-user.model.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/batd92/telegram-mini-game/HEAD/backend/src/models/telegram-user.model.ts -------------------------------------------------------------------------------- /backend/src/models/user-session.model.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/batd92/telegram-mini-game/HEAD/backend/src/models/user-session.model.ts -------------------------------------------------------------------------------- /backend/src/models/user.model.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/batd92/telegram-mini-game/HEAD/backend/src/models/user.model.ts -------------------------------------------------------------------------------- /backend/src/modules/game-history/dto/request.dto.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/batd92/telegram-mini-game/HEAD/backend/src/modules/game-history/dto/request.dto.ts -------------------------------------------------------------------------------- /backend/src/modules/game-history/dto/response.dto.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/batd92/telegram-mini-game/HEAD/backend/src/modules/game-history/dto/response.dto.ts -------------------------------------------------------------------------------- /backend/src/modules/game-history/game-history.controller.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/batd92/telegram-mini-game/HEAD/backend/src/modules/game-history/game-history.controller.ts -------------------------------------------------------------------------------- /backend/src/modules/game-history/game-history.module.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/batd92/telegram-mini-game/HEAD/backend/src/modules/game-history/game-history.module.ts -------------------------------------------------------------------------------- /backend/src/modules/game-history/game-history.service.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/batd92/telegram-mini-game/HEAD/backend/src/modules/game-history/game-history.service.ts -------------------------------------------------------------------------------- /backend/src/modules/game-profile/dto/request.dto.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/batd92/telegram-mini-game/HEAD/backend/src/modules/game-profile/dto/request.dto.ts -------------------------------------------------------------------------------- /backend/src/modules/game-profile/dto/response.dto.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/batd92/telegram-mini-game/HEAD/backend/src/modules/game-profile/dto/response.dto.ts -------------------------------------------------------------------------------- /backend/src/modules/game-profile/game-profile.controller.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/batd92/telegram-mini-game/HEAD/backend/src/modules/game-profile/game-profile.controller.ts -------------------------------------------------------------------------------- /backend/src/modules/game-profile/game-profile.module.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/batd92/telegram-mini-game/HEAD/backend/src/modules/game-profile/game-profile.module.ts -------------------------------------------------------------------------------- /backend/src/modules/game-profile/game-profile.service.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/batd92/telegram-mini-game/HEAD/backend/src/modules/game-profile/game-profile.service.ts -------------------------------------------------------------------------------- /backend/src/modules/health/health.controller.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/batd92/telegram-mini-game/HEAD/backend/src/modules/health/health.controller.ts -------------------------------------------------------------------------------- /backend/src/modules/health/health.module.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/batd92/telegram-mini-game/HEAD/backend/src/modules/health/health.module.ts -------------------------------------------------------------------------------- /backend/src/modules/prisma/prisma.module.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/batd92/telegram-mini-game/HEAD/backend/src/modules/prisma/prisma.module.ts -------------------------------------------------------------------------------- /backend/src/modules/prisma/prisma.service.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/batd92/telegram-mini-game/HEAD/backend/src/modules/prisma/prisma.service.ts -------------------------------------------------------------------------------- /backend/src/modules/referral/dto/request.dto.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/batd92/telegram-mini-game/HEAD/backend/src/modules/referral/dto/request.dto.ts -------------------------------------------------------------------------------- /backend/src/modules/referral/dto/response.dto.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/batd92/telegram-mini-game/HEAD/backend/src/modules/referral/dto/response.dto.ts -------------------------------------------------------------------------------- /backend/src/modules/referral/referral.controller.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/batd92/telegram-mini-game/HEAD/backend/src/modules/referral/referral.controller.ts -------------------------------------------------------------------------------- /backend/src/modules/referral/referral.module.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/batd92/telegram-mini-game/HEAD/backend/src/modules/referral/referral.module.ts -------------------------------------------------------------------------------- /backend/src/modules/referral/referral.service.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/batd92/telegram-mini-game/HEAD/backend/src/modules/referral/referral.service.ts -------------------------------------------------------------------------------- /backend/src/modules/task-history/dto/request.dto.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/batd92/telegram-mini-game/HEAD/backend/src/modules/task-history/dto/request.dto.ts -------------------------------------------------------------------------------- /backend/src/modules/task-history/dto/response.dto.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/batd92/telegram-mini-game/HEAD/backend/src/modules/task-history/dto/response.dto.ts -------------------------------------------------------------------------------- /backend/src/modules/task-history/task-history.controller.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/batd92/telegram-mini-game/HEAD/backend/src/modules/task-history/task-history.controller.ts -------------------------------------------------------------------------------- /backend/src/modules/task-history/task-history.module.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/batd92/telegram-mini-game/HEAD/backend/src/modules/task-history/task-history.module.ts -------------------------------------------------------------------------------- /backend/src/modules/task-history/task-history.service.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/batd92/telegram-mini-game/HEAD/backend/src/modules/task-history/task-history.service.ts -------------------------------------------------------------------------------- /backend/src/modules/task/dto/create-task.dto.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/batd92/telegram-mini-game/HEAD/backend/src/modules/task/dto/create-task.dto.ts -------------------------------------------------------------------------------- /backend/src/modules/task/dto/response.task.dto.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/batd92/telegram-mini-game/HEAD/backend/src/modules/task/dto/response.task.dto.ts -------------------------------------------------------------------------------- /backend/src/modules/task/dto/update-task.dto.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/batd92/telegram-mini-game/HEAD/backend/src/modules/task/dto/update-task.dto.ts -------------------------------------------------------------------------------- /backend/src/modules/task/task.controller.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/batd92/telegram-mini-game/HEAD/backend/src/modules/task/task.controller.ts -------------------------------------------------------------------------------- /backend/src/modules/task/task.module.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/batd92/telegram-mini-game/HEAD/backend/src/modules/task/task.module.ts -------------------------------------------------------------------------------- /backend/src/modules/task/task.service.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/batd92/telegram-mini-game/HEAD/backend/src/modules/task/task.service.ts -------------------------------------------------------------------------------- /backend/src/modules/telegram-user/dto/response.dto.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/batd92/telegram-mini-game/HEAD/backend/src/modules/telegram-user/dto/response.dto.ts -------------------------------------------------------------------------------- /backend/src/modules/telegram-user/telegram-user.controller.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/batd92/telegram-mini-game/HEAD/backend/src/modules/telegram-user/telegram-user.controller.ts -------------------------------------------------------------------------------- /backend/src/modules/telegram-user/telegram-user.module.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/batd92/telegram-mini-game/HEAD/backend/src/modules/telegram-user/telegram-user.module.ts -------------------------------------------------------------------------------- /backend/src/modules/telegram-user/telegram-user.service.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/batd92/telegram-mini-game/HEAD/backend/src/modules/telegram-user/telegram-user.service.ts -------------------------------------------------------------------------------- /backend/src/modules/telegram/interfaces/telegram.interface.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/batd92/telegram-mini-game/HEAD/backend/src/modules/telegram/interfaces/telegram.interface.ts -------------------------------------------------------------------------------- /backend/src/modules/telegram/telegram.controller.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/batd92/telegram-mini-game/HEAD/backend/src/modules/telegram/telegram.controller.ts -------------------------------------------------------------------------------- /backend/src/modules/telegram/telegram.module.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/batd92/telegram-mini-game/HEAD/backend/src/modules/telegram/telegram.module.ts -------------------------------------------------------------------------------- /backend/src/modules/telegram/telegram.service.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/batd92/telegram-mini-game/HEAD/backend/src/modules/telegram/telegram.service.ts -------------------------------------------------------------------------------- /backend/src/modules/user/user.controller.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/batd92/telegram-mini-game/HEAD/backend/src/modules/user/user.controller.ts -------------------------------------------------------------------------------- /backend/src/modules/user/user.module.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/batd92/telegram-mini-game/HEAD/backend/src/modules/user/user.module.ts -------------------------------------------------------------------------------- /backend/src/modules/user/user.service.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/batd92/telegram-mini-game/HEAD/backend/src/modules/user/user.service.ts -------------------------------------------------------------------------------- /backend/src/shared/enum/role-type.enum.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/batd92/telegram-mini-game/HEAD/backend/src/shared/enum/role-type.enum.ts -------------------------------------------------------------------------------- /backend/src/shared/pipe/parse-object-id.pipe.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/batd92/telegram-mini-game/HEAD/backend/src/shared/pipe/parse-object-id.pipe.ts -------------------------------------------------------------------------------- /backend/tsconfig.build.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/batd92/telegram-mini-game/HEAD/backend/tsconfig.build.json -------------------------------------------------------------------------------- /backend/tsconfig.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/batd92/telegram-mini-game/HEAD/backend/tsconfig.json -------------------------------------------------------------------------------- /docker/docker-compose.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/batd92/telegram-mini-game/HEAD/docker/docker-compose.yml -------------------------------------------------------------------------------- /docker/docker.txt: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /frontend/.env.example: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/batd92/telegram-mini-game/HEAD/frontend/.env.example -------------------------------------------------------------------------------- /frontend/.gitignore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/batd92/telegram-mini-game/HEAD/frontend/.gitignore -------------------------------------------------------------------------------- /frontend/.prettierrc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/batd92/telegram-mini-game/HEAD/frontend/.prettierrc -------------------------------------------------------------------------------- /frontend/README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/batd92/telegram-mini-game/HEAD/frontend/README.md -------------------------------------------------------------------------------- /frontend/eslint.config.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/batd92/telegram-mini-game/HEAD/frontend/eslint.config.js -------------------------------------------------------------------------------- /frontend/index.html: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/batd92/telegram-mini-game/HEAD/frontend/index.html -------------------------------------------------------------------------------- /frontend/package-lock.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/batd92/telegram-mini-game/HEAD/frontend/package-lock.json -------------------------------------------------------------------------------- /frontend/package.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/batd92/telegram-mini-game/HEAD/frontend/package.json -------------------------------------------------------------------------------- /frontend/public/images/bg.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/batd92/telegram-mini-game/HEAD/frontend/public/images/bg.png -------------------------------------------------------------------------------- /frontend/public/images/coin.svg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/batd92/telegram-mini-game/HEAD/frontend/public/images/coin.svg -------------------------------------------------------------------------------- /frontend/public/images/copy.svg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/batd92/telegram-mini-game/HEAD/frontend/public/images/copy.svg -------------------------------------------------------------------------------- /frontend/public/images/git-qr-code.ce34b3d3.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/batd92/telegram-mini-game/HEAD/frontend/public/images/git-qr-code.ce34b3d3.png -------------------------------------------------------------------------------- /frontend/public/images/shiba.svg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/batd92/telegram-mini-game/HEAD/frontend/public/images/shiba.svg -------------------------------------------------------------------------------- /frontend/public/sounds/14728.mp3: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/batd92/telegram-mini-game/HEAD/frontend/public/sounds/14728.mp3 -------------------------------------------------------------------------------- /frontend/public/sounds/coin-donation-2-180438.mp3: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/batd92/telegram-mini-game/HEAD/frontend/public/sounds/coin-donation-2-180438.mp3 -------------------------------------------------------------------------------- /frontend/public/vite.svg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/batd92/telegram-mini-game/HEAD/frontend/public/vite.svg -------------------------------------------------------------------------------- /frontend/src/App.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/batd92/telegram-mini-game/HEAD/frontend/src/App.tsx -------------------------------------------------------------------------------- /frontend/src/assets/react.svg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/batd92/telegram-mini-game/HEAD/frontend/src/assets/react.svg -------------------------------------------------------------------------------- /frontend/src/components/Breadcrumb.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/batd92/telegram-mini-game/HEAD/frontend/src/components/Breadcrumb.tsx -------------------------------------------------------------------------------- /frontend/src/components/PrivateRoute.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/batd92/telegram-mini-game/HEAD/frontend/src/components/PrivateRoute.tsx -------------------------------------------------------------------------------- /frontend/src/components/TokenHandler.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/batd92/telegram-mini-game/HEAD/frontend/src/components/TokenHandler.tsx -------------------------------------------------------------------------------- /frontend/src/contexts/AuthContext.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/batd92/telegram-mini-game/HEAD/frontend/src/contexts/AuthContext.tsx -------------------------------------------------------------------------------- /frontend/src/game/Coin.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/batd92/telegram-mini-game/HEAD/frontend/src/game/Coin.ts -------------------------------------------------------------------------------- /frontend/src/game/Face.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/batd92/telegram-mini-game/HEAD/frontend/src/game/Face.ts -------------------------------------------------------------------------------- /frontend/src/index.css: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/batd92/telegram-mini-game/HEAD/frontend/src/index.css -------------------------------------------------------------------------------- /frontend/src/interfaces/IGameHistory.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/batd92/telegram-mini-game/HEAD/frontend/src/interfaces/IGameHistory.ts -------------------------------------------------------------------------------- /frontend/src/interfaces/IMe.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/batd92/telegram-mini-game/HEAD/frontend/src/interfaces/IMe.ts -------------------------------------------------------------------------------- /frontend/src/interfaces/IReferred.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/batd92/telegram-mini-game/HEAD/frontend/src/interfaces/IReferred.ts -------------------------------------------------------------------------------- /frontend/src/interfaces/ITask.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/batd92/telegram-mini-game/HEAD/frontend/src/interfaces/ITask.ts -------------------------------------------------------------------------------- /frontend/src/main.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/batd92/telegram-mini-game/HEAD/frontend/src/main.tsx -------------------------------------------------------------------------------- /frontend/src/pages/History.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/batd92/telegram-mini-game/HEAD/frontend/src/pages/History.tsx -------------------------------------------------------------------------------- /frontend/src/pages/Home.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/batd92/telegram-mini-game/HEAD/frontend/src/pages/Home.tsx -------------------------------------------------------------------------------- /frontend/src/pages/Referral.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/batd92/telegram-mini-game/HEAD/frontend/src/pages/Referral.tsx -------------------------------------------------------------------------------- /frontend/src/pages/Task.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/batd92/telegram-mini-game/HEAD/frontend/src/pages/Task.tsx -------------------------------------------------------------------------------- /frontend/src/pages/TelegramLogin.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/batd92/telegram-mini-game/HEAD/frontend/src/pages/TelegramLogin.tsx -------------------------------------------------------------------------------- /frontend/src/pages/game/ControlPanel.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/batd92/telegram-mini-game/HEAD/frontend/src/pages/game/ControlPanel.tsx -------------------------------------------------------------------------------- /frontend/src/pages/game/Footer.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/batd92/telegram-mini-game/HEAD/frontend/src/pages/game/Footer.tsx -------------------------------------------------------------------------------- /frontend/src/pages/game/GameTab.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/batd92/telegram-mini-game/HEAD/frontend/src/pages/game/GameTab.tsx -------------------------------------------------------------------------------- /frontend/src/pages/game/ModalEnd.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/batd92/telegram-mini-game/HEAD/frontend/src/pages/game/ModalEnd.tsx -------------------------------------------------------------------------------- /frontend/src/services/apiService.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/batd92/telegram-mini-game/HEAD/frontend/src/services/apiService.ts -------------------------------------------------------------------------------- /frontend/src/services/axiosInstance.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/batd92/telegram-mini-game/HEAD/frontend/src/services/axiosInstance.ts -------------------------------------------------------------------------------- /frontend/src/utils/index.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/batd92/telegram-mini-game/HEAD/frontend/src/utils/index.ts -------------------------------------------------------------------------------- /frontend/src/vite-env.d.ts: -------------------------------------------------------------------------------- 1 | /// 2 | -------------------------------------------------------------------------------- /frontend/tsconfig.app.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/batd92/telegram-mini-game/HEAD/frontend/tsconfig.app.json -------------------------------------------------------------------------------- /frontend/tsconfig.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/batd92/telegram-mini-game/HEAD/frontend/tsconfig.json -------------------------------------------------------------------------------- /frontend/tsconfig.node.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/batd92/telegram-mini-game/HEAD/frontend/tsconfig.node.json -------------------------------------------------------------------------------- /frontend/vite.config.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/batd92/telegram-mini-game/HEAD/frontend/vite.config.ts -------------------------------------------------------------------------------- /smart-contract/smart-contract.txt: -------------------------------------------------------------------------------- 1 | --------------------------------------------------------------------------------