For client folder, below are the commands that I have used.
yarn create react-app.
yarn add react-router-dom axios react-cookie
For server folder, below are the commands that I have used.
yarn init
yarn add express cors bcrypt jsonwebtoken mongoose
yarn add --dev nodemon