Setting up PWA with create-react-app and typescript.
Install create-react-app if you haven't already.
npm i create-react-app -g
Create a react app with TypeScript and PWA support. Also, we are using NPM as package manager. Alternatively, you may use yarn.
create-react-app frontend --use-npm --template cra-template-pwa-typescript
To build the project