cd client
npx create-react-app ./ --template typescript
npm install socket.io-client react-router-dom @types/react-router-dom
1014 npm i simple-peer @types/simple-peer
for peer to peer connection
cd server
npm init -y
npm install typescript --save-dev
npm install express cors nodemon socket.io body-parser
npm install --save @types/express @types/cors @types/body-parser
npm i -D nodemon ts-node
vim package.json
"scripts": {
"test": "echo \"Error: no test specified\" && exit 1",
"start": "nodemon index.ts"
},
touch index.ts
npm start