- https://github.com/lingdocs/pashto-dictionary-spa
- https://github.com/lingdocs/pashto-dictionary-lambda
- https://github.com/lingdocs/lingdocs-backend
This monorepo contains:
/dictionary-clientthe frontend of the dictionary, a React SPA/accounta backend authentication server/functionsbackend 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]SPA Dictionary Frontend
cd website
npm installnpm run devBackend authentication server build on express / passport
cd account
npm install
npm run devBackend Firebase functions
cd functions
npm installfirebase login
# get envars locally
firebase functions:config:get > .runtimeconfig.json
# start functions emulator
npm run serveWhen a user upgrades their account level to student or editor:
- A doc in the
_usersdb is created with their Firebase Authentication info, account level, and a password they can use for syncing their personal wordlistdb - 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).