Skip to content

egorvinogradov/chinese-words

Repository files navigation

chinese-words (chinese-words.surge.sh)

Web-app for learning Chinese

Docs

Adding new radicals

Adding new radicals

Set up locally

  1. Open https://console.developers.google.com/apis/credentials?project=chinese-mrg and click "" to download Google Console credentials.
  2. Then:
# Clone repo
git clone [email protected]:egorvinogradov/chinese-words.git

# Switch to repo folder
cd chinese-words

# Rename JSON file w/ the credentials into credentials.json and put into project root
mv ~/Downloads/client_secret_*.json credentials.json

# Install npm dependencies
npm install

# Run project
npm start

Update dictionary

  1. Add new radicals and related strokes to Chinese MRG: Radicals Spreadsheet
  2. Add new words and related radicals to Chinese MRG: Radicals Spreadsheet
  3. npm run sync (or npm run sync-dev to redirect to local server)

Add words from Skritter

  1. Go to https://skritter.com/vocablists/view/list12
  2. Choose a lesson
  3. Launch "Parse Skritter" browser bookmark (bin/parse_skritter.js)
  4. Paste into Chinese MRG: Radicals Spreadsheet
  5. Click "Split text to columns" in the paste context menu.

Deploy to server

  1. npm run deploy