| .. | ||
| add_user.js | ||
| csv_vocab_to_mongo.py | ||
| package-lock.json | ||
| README.md | ||
Scripts
A few scripts to help with any task
csv_vocab_to_mongo.py
Parses the vocabulary files in $REPO_ROOT/data/vocab/, converts the vocabulary items
into a format that fits the database model for vocabulary items (see `backend/db.md**) and
writes the data into the MongoDB database.
NOTE: Requires pymongo to be installed via pip
Usage
python csv_vocab_to_mongo.py <URI> <Database>
URI: The URI of the MongoDB instanceDatabase: The name of the database in the MongoDB instance
add_user.js
Asks the user about his data (username, password, class** and adds the user to the database.
NOTE: Requires mongodb to be installed via npm
Usage
node add_user.js <URI> <Database>
URI: The URI of the MongoDB instanceDatabase: The name of the database in the MongoDB instance