This app was created using Chakra UI template:
npx create-react-app serverless-payment-frontend --template @chakra-ui
Chakra UI gives easy to use constructs to build UI fast without having to worry much about CSS.
npm install
npm start
In the .env
file, provide the PAYMENT_HOST
value which would expose APIs for your Payment integration.
npm run build
sls deploy
We will be using Lift
from Serverless which will deploy the frontend in S3, setup bucket policies, configure Cloud front and manage cache invalidation.