- Install nvm:
Follow the instructions at https://github.com/nvm-sh/nvm to install nvm.
- Install Node.js 18: Run the following command to install Node.js 18 using nvm:
nvm install 18
- Install Yarn: Run the following command to install Yarn globally:
npm i -g yarn
-
Create an AWS account
-
Create a .env.local file in the project's root folder with the following content:
AWS_ACCESS_KEY_ID=your access key id
AWS_SECRET_ACCESS_KEY=your secret access key
# Region ap-northeast-1 is at tokyo
AWS_REGION=ap-northeast-1
NODE_ENV=development
- Open the JavaScript Debug Terminal and execute the following command:
yarn dev
- Open another terminal and execute the following command:
yarn dev:web
Pass all the props from a parent component to a child component: https://medium.com/coding-at-dawn/how-to-pass-all-props-to-a-child-component-in-react-bded9e38bb62
https://stackoverflow.com/questions/61526823/what-is-on-doing-in-this-graphql