Live: https://admin.touchsistemas.com.br
React / TypeScript / Tailwind
IMPORTANT NOTE: ./amplify was added to .gitignore, this way every new build need to init and import auth, and also add hosting.
- Build https://github.com/gugazimmermann/touch-admin
- run
npm installto install dependencies packages - create
.envfile as.env.sample, use the output from the backend amplify initto import Cognito and Hostingamplify import authand choose Cognito User Pool and Identity Pool, select the created userPool from the backend output;amplify import storageand choose the bucket Logo and Maps bucket from the backend output- run
amplify push - run
npm startto run the react app
- run
amplify add hostingand select Amazon CloudFront and S3 and PROD (S3 with CloudFront using HTTPS - run
amplify push - run
amplify publish
The output will be similar to this one:
Your app is published successfully.
https://d113tyd56o48tz.cloudfront.netPay attention that in the backend we need to modify the CORS to accept this domain, and not only the localhost.
We can also change the CloudFormation to work with Route43 and add a custom domain, in my case is https://admin.touchsistemas.com.br