Skip to content

ocw-central/ocw-central-frontend

Repository files navigation

ocw-central-frontend

ESLint Prettier Jest License: MIT Gitter

Requirement

Node

  • Install nvm (Node Version Manager)
  • Install Node 16.13.0
    nvm install 16.13.0
  • Activate
    nvm use 16.13.0

yarn

  • 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

Languages & tools