- Install nvm (Node Version Manager)
- Install Node
16.13.0
nvm install 16.13.0
- Activate
nvm use 16.13.0
-
Install yarn
npm install --global yarn
-
Install dependencies:
git clone https://github.com/ocw-central/ocw-central-frontend cd ocw-central-frontend yarn install
-
Start the server
yarn dev
-
Use eslint to lint the code
yarn lint
-
Build
yarn build
GraphQL Client (Apollo Client)
- Add schemas for GraphQL queries to
~/src/documents
- Generate type definitions of queries
yarn generate