├── .gitignore ├── README.md ├── backend ├── .gitignore ├── handler.ts ├── mapping-templates │ ├── common-item-response.vtl │ ├── common-items-response.vtl │ ├── create_todo │ │ └── request.vtl │ ├── create_user │ │ └── request.vtl │ ├── delete_todo │ │ └── request.vtl │ ├── delete_user │ │ └── request.vtl │ ├── get_profile │ │ ├── request.vtl │ │ └── response.vtl │ ├── get_todo │ │ └── request.vtl │ ├── get_todo_user │ │ └── request.vtl │ ├── get_user │ │ └── request.vtl │ ├── list_user_todos │ │ └── request.vtl │ ├── list_users │ │ └── request.vtl │ ├── update_todo │ │ └── request.vtl │ └── update_user │ │ └── request.vtl ├── package.json ├── resources │ ├── appsync-dynamo-role.yml │ ├── cognito-userpool.yml │ ├── dynamo-table.yml │ └── web-hosting-bucket.yml ├── schema.graphql ├── scripts │ └── output.js ├── serverless.yml ├── tsconfig.json ├── webpack.config.js └── yarn.lock └── client ├── .gitignore ├── README.md ├── package-lock.json ├── package.json ├── public ├── favicon.ico ├── index.html ├── logo192.png ├── logo512.png ├── manifest.json └── robots.txt ├── src ├── App.css ├── App.test.tsx ├── App.tsx ├── components │ ├── DataList │ │ └── index.tsx │ └── styled │ │ ├── EmailConfirmFormWrapper.tsx │ │ ├── FormWrapper.tsx │ │ ├── FullWidthWrapper.tsx │ │ └── index.tsx ├── containers │ ├── ConfirmEmailContainer │ │ └── index.tsx │ ├── DashboardContainer │ │ └── index.tsx │ ├── ForgotPasswordContainer │ │ └── index.tsx │ ├── LoginContainer │ │ └── index.tsx │ ├── PasswordResetContainer │ │ └── index.tsx │ └── SignUpContainer │ │ └── index.tsx ├── global.ts ├── graphql │ ├── mutations │ │ ├── createToDo.ts │ │ ├── deleteToDo.ts │ │ ├── deleteUser.ts │ │ └── updateToDo.ts │ └── queries │ │ ├── getProfile.ts │ │ ├── getToDo.ts │ │ └── listUserToDos.ts ├── index.tsx ├── navigation │ ├── PrivateRoute.tsx │ └── Routes.tsx ├── react-app-env.d.ts ├── reportWebVitals.ts ├── setupTests.ts ├── theme │ └── colors.ts └── utils │ ├── constants.ts │ ├── custom-types.ts │ └── helpers.ts ├── tsconfig.json └── yarn.lock /.gitignore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/brayoh/amplify-multi-tenant-react/HEAD/.gitignore -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # amplify-multi-tenant-react 2 | -------------------------------------------------------------------------------- /backend/.gitignore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/brayoh/amplify-multi-tenant-react/HEAD/backend/.gitignore -------------------------------------------------------------------------------- /backend/handler.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/brayoh/amplify-multi-tenant-react/HEAD/backend/handler.ts -------------------------------------------------------------------------------- /backend/mapping-templates/common-item-response.vtl: -------------------------------------------------------------------------------- 1 | $util.toJson($ctx.result) -------------------------------------------------------------------------------- /backend/mapping-templates/common-items-response.vtl: -------------------------------------------------------------------------------- 1 | $util.toJson($ctx.result.items) -------------------------------------------------------------------------------- /backend/mapping-templates/create_todo/request.vtl: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/brayoh/amplify-multi-tenant-react/HEAD/backend/mapping-templates/create_todo/request.vtl -------------------------------------------------------------------------------- /backend/mapping-templates/create_user/request.vtl: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/brayoh/amplify-multi-tenant-react/HEAD/backend/mapping-templates/create_user/request.vtl -------------------------------------------------------------------------------- /backend/mapping-templates/delete_todo/request.vtl: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/brayoh/amplify-multi-tenant-react/HEAD/backend/mapping-templates/delete_todo/request.vtl -------------------------------------------------------------------------------- /backend/mapping-templates/delete_user/request.vtl: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/brayoh/amplify-multi-tenant-react/HEAD/backend/mapping-templates/delete_user/request.vtl -------------------------------------------------------------------------------- /backend/mapping-templates/get_profile/request.vtl: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/brayoh/amplify-multi-tenant-react/HEAD/backend/mapping-templates/get_profile/request.vtl -------------------------------------------------------------------------------- /backend/mapping-templates/get_profile/response.vtl: -------------------------------------------------------------------------------- 1 | $util.toJson($ctx.result.items[0]) 2 | -------------------------------------------------------------------------------- /backend/mapping-templates/get_todo/request.vtl: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/brayoh/amplify-multi-tenant-react/HEAD/backend/mapping-templates/get_todo/request.vtl -------------------------------------------------------------------------------- /backend/mapping-templates/get_todo_user/request.vtl: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/brayoh/amplify-multi-tenant-react/HEAD/backend/mapping-templates/get_todo_user/request.vtl -------------------------------------------------------------------------------- /backend/mapping-templates/get_user/request.vtl: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/brayoh/amplify-multi-tenant-react/HEAD/backend/mapping-templates/get_user/request.vtl -------------------------------------------------------------------------------- /backend/mapping-templates/list_user_todos/request.vtl: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/brayoh/amplify-multi-tenant-react/HEAD/backend/mapping-templates/list_user_todos/request.vtl -------------------------------------------------------------------------------- /backend/mapping-templates/list_users/request.vtl: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/brayoh/amplify-multi-tenant-react/HEAD/backend/mapping-templates/list_users/request.vtl -------------------------------------------------------------------------------- /backend/mapping-templates/update_todo/request.vtl: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/brayoh/amplify-multi-tenant-react/HEAD/backend/mapping-templates/update_todo/request.vtl -------------------------------------------------------------------------------- /backend/mapping-templates/update_user/request.vtl: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/brayoh/amplify-multi-tenant-react/HEAD/backend/mapping-templates/update_user/request.vtl -------------------------------------------------------------------------------- /backend/package.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/brayoh/amplify-multi-tenant-react/HEAD/backend/package.json -------------------------------------------------------------------------------- /backend/resources/appsync-dynamo-role.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/brayoh/amplify-multi-tenant-react/HEAD/backend/resources/appsync-dynamo-role.yml -------------------------------------------------------------------------------- /backend/resources/cognito-userpool.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/brayoh/amplify-multi-tenant-react/HEAD/backend/resources/cognito-userpool.yml -------------------------------------------------------------------------------- /backend/resources/dynamo-table.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/brayoh/amplify-multi-tenant-react/HEAD/backend/resources/dynamo-table.yml -------------------------------------------------------------------------------- /backend/resources/web-hosting-bucket.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/brayoh/amplify-multi-tenant-react/HEAD/backend/resources/web-hosting-bucket.yml -------------------------------------------------------------------------------- /backend/schema.graphql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/brayoh/amplify-multi-tenant-react/HEAD/backend/schema.graphql -------------------------------------------------------------------------------- /backend/scripts/output.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/brayoh/amplify-multi-tenant-react/HEAD/backend/scripts/output.js -------------------------------------------------------------------------------- /backend/serverless.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/brayoh/amplify-multi-tenant-react/HEAD/backend/serverless.yml -------------------------------------------------------------------------------- /backend/tsconfig.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/brayoh/amplify-multi-tenant-react/HEAD/backend/tsconfig.json -------------------------------------------------------------------------------- /backend/webpack.config.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/brayoh/amplify-multi-tenant-react/HEAD/backend/webpack.config.js -------------------------------------------------------------------------------- /backend/yarn.lock: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/brayoh/amplify-multi-tenant-react/HEAD/backend/yarn.lock -------------------------------------------------------------------------------- /client/.gitignore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/brayoh/amplify-multi-tenant-react/HEAD/client/.gitignore -------------------------------------------------------------------------------- /client/README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/brayoh/amplify-multi-tenant-react/HEAD/client/README.md -------------------------------------------------------------------------------- /client/package-lock.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/brayoh/amplify-multi-tenant-react/HEAD/client/package-lock.json -------------------------------------------------------------------------------- /client/package.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/brayoh/amplify-multi-tenant-react/HEAD/client/package.json -------------------------------------------------------------------------------- /client/public/favicon.ico: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/brayoh/amplify-multi-tenant-react/HEAD/client/public/favicon.ico -------------------------------------------------------------------------------- /client/public/index.html: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/brayoh/amplify-multi-tenant-react/HEAD/client/public/index.html -------------------------------------------------------------------------------- /client/public/logo192.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/brayoh/amplify-multi-tenant-react/HEAD/client/public/logo192.png -------------------------------------------------------------------------------- /client/public/logo512.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/brayoh/amplify-multi-tenant-react/HEAD/client/public/logo512.png -------------------------------------------------------------------------------- /client/public/manifest.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/brayoh/amplify-multi-tenant-react/HEAD/client/public/manifest.json -------------------------------------------------------------------------------- /client/public/robots.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/brayoh/amplify-multi-tenant-react/HEAD/client/public/robots.txt -------------------------------------------------------------------------------- /client/src/App.css: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/brayoh/amplify-multi-tenant-react/HEAD/client/src/App.css -------------------------------------------------------------------------------- /client/src/App.test.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/brayoh/amplify-multi-tenant-react/HEAD/client/src/App.test.tsx -------------------------------------------------------------------------------- /client/src/App.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/brayoh/amplify-multi-tenant-react/HEAD/client/src/App.tsx -------------------------------------------------------------------------------- /client/src/components/DataList/index.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/brayoh/amplify-multi-tenant-react/HEAD/client/src/components/DataList/index.tsx -------------------------------------------------------------------------------- /client/src/components/styled/EmailConfirmFormWrapper.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/brayoh/amplify-multi-tenant-react/HEAD/client/src/components/styled/EmailConfirmFormWrapper.tsx -------------------------------------------------------------------------------- /client/src/components/styled/FormWrapper.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/brayoh/amplify-multi-tenant-react/HEAD/client/src/components/styled/FormWrapper.tsx -------------------------------------------------------------------------------- /client/src/components/styled/FullWidthWrapper.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/brayoh/amplify-multi-tenant-react/HEAD/client/src/components/styled/FullWidthWrapper.tsx -------------------------------------------------------------------------------- /client/src/components/styled/index.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/brayoh/amplify-multi-tenant-react/HEAD/client/src/components/styled/index.tsx -------------------------------------------------------------------------------- /client/src/containers/ConfirmEmailContainer/index.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/brayoh/amplify-multi-tenant-react/HEAD/client/src/containers/ConfirmEmailContainer/index.tsx -------------------------------------------------------------------------------- /client/src/containers/DashboardContainer/index.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/brayoh/amplify-multi-tenant-react/HEAD/client/src/containers/DashboardContainer/index.tsx -------------------------------------------------------------------------------- /client/src/containers/ForgotPasswordContainer/index.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/brayoh/amplify-multi-tenant-react/HEAD/client/src/containers/ForgotPasswordContainer/index.tsx -------------------------------------------------------------------------------- /client/src/containers/LoginContainer/index.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/brayoh/amplify-multi-tenant-react/HEAD/client/src/containers/LoginContainer/index.tsx -------------------------------------------------------------------------------- /client/src/containers/PasswordResetContainer/index.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/brayoh/amplify-multi-tenant-react/HEAD/client/src/containers/PasswordResetContainer/index.tsx -------------------------------------------------------------------------------- /client/src/containers/SignUpContainer/index.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/brayoh/amplify-multi-tenant-react/HEAD/client/src/containers/SignUpContainer/index.tsx -------------------------------------------------------------------------------- /client/src/global.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/brayoh/amplify-multi-tenant-react/HEAD/client/src/global.ts -------------------------------------------------------------------------------- /client/src/graphql/mutations/createToDo.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/brayoh/amplify-multi-tenant-react/HEAD/client/src/graphql/mutations/createToDo.ts -------------------------------------------------------------------------------- /client/src/graphql/mutations/deleteToDo.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/brayoh/amplify-multi-tenant-react/HEAD/client/src/graphql/mutations/deleteToDo.ts -------------------------------------------------------------------------------- /client/src/graphql/mutations/deleteUser.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/brayoh/amplify-multi-tenant-react/HEAD/client/src/graphql/mutations/deleteUser.ts -------------------------------------------------------------------------------- /client/src/graphql/mutations/updateToDo.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/brayoh/amplify-multi-tenant-react/HEAD/client/src/graphql/mutations/updateToDo.ts -------------------------------------------------------------------------------- /client/src/graphql/queries/getProfile.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/brayoh/amplify-multi-tenant-react/HEAD/client/src/graphql/queries/getProfile.ts -------------------------------------------------------------------------------- /client/src/graphql/queries/getToDo.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/brayoh/amplify-multi-tenant-react/HEAD/client/src/graphql/queries/getToDo.ts -------------------------------------------------------------------------------- /client/src/graphql/queries/listUserToDos.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/brayoh/amplify-multi-tenant-react/HEAD/client/src/graphql/queries/listUserToDos.ts -------------------------------------------------------------------------------- /client/src/index.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/brayoh/amplify-multi-tenant-react/HEAD/client/src/index.tsx -------------------------------------------------------------------------------- /client/src/navigation/PrivateRoute.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/brayoh/amplify-multi-tenant-react/HEAD/client/src/navigation/PrivateRoute.tsx -------------------------------------------------------------------------------- /client/src/navigation/Routes.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/brayoh/amplify-multi-tenant-react/HEAD/client/src/navigation/Routes.tsx -------------------------------------------------------------------------------- /client/src/react-app-env.d.ts: -------------------------------------------------------------------------------- 1 | /// 2 | -------------------------------------------------------------------------------- /client/src/reportWebVitals.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/brayoh/amplify-multi-tenant-react/HEAD/client/src/reportWebVitals.ts -------------------------------------------------------------------------------- /client/src/setupTests.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/brayoh/amplify-multi-tenant-react/HEAD/client/src/setupTests.ts -------------------------------------------------------------------------------- /client/src/theme/colors.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/brayoh/amplify-multi-tenant-react/HEAD/client/src/theme/colors.ts -------------------------------------------------------------------------------- /client/src/utils/constants.ts: -------------------------------------------------------------------------------- 1 | /** Auth user token key */ 2 | export const AUTH_USER_TOKEN_KEY = "ReactAmplifyMultiTenant.TokenKey"; 3 | -------------------------------------------------------------------------------- /client/src/utils/custom-types.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/brayoh/amplify-multi-tenant-react/HEAD/client/src/utils/custom-types.ts -------------------------------------------------------------------------------- /client/src/utils/helpers.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/brayoh/amplify-multi-tenant-react/HEAD/client/src/utils/helpers.ts -------------------------------------------------------------------------------- /client/tsconfig.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/brayoh/amplify-multi-tenant-react/HEAD/client/tsconfig.json -------------------------------------------------------------------------------- /client/yarn.lock: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/brayoh/amplify-multi-tenant-react/HEAD/client/yarn.lock --------------------------------------------------------------------------------