Skip to content
This repository was archived by the owner on Aug 29, 2025. It is now read-only.
/ pashto-dictionary Public archive

About monorepo for LingDocs Pashto dictionary, account, and backend

License

Notifications You must be signed in to change notification settings

lingdocs/pashto-dictionary

Repository files navigation

LingDocs Dictionary Monorepo

NOTE: this mono-repo has been split up archived. The code is working from:

LingDocs Logo

Contents

This monorepo contains:

  • /dictionary-client the frontend of the dictionary, a React SPA
  • /account a backend authentication server
  • /functions backend Firebase functions for use with the dictionary

To update the @lingdocs/pashto-inflector dependency accross the project you can use the shell script included:

./update-inflector.sh [version]

Dictionary Client

SPA Dictionary Frontend

cd website
npm install

Development

npm run dev

Account

Backend authentication server build on express / passport

Development

cd account
npm install
npm run dev

Functions

Backend Firebase functions

cd functions
npm install

Development

firebase login
# get envars locally
firebase functions:config:get > .runtimeconfig.json
# start functions emulator
npm run serve

CouchDB

When a user upgrades their account level to student or editor:

  1. A doc in the _users db is created with their Firebase Authentication info, account level, and a password they can use for syncing their personal wordlistdb
  2. A user database is created which they use to sync their personal wordlist.

There is also a review-tasks database which is used to store all the review tasks for editors and syncs with the review tasks in the app for the editor(s).

About

About monorepo for LingDocs Pashto dictionary, account, and backend

Resources

License

Stars

Watchers

Forks

Sponsor this project