Step 1: Build a Dictionary
The following command places the JSON dictionaries in thebuild/
directory:
Here’s an example JSON dictionary file:
ig-en/ig-en_expanded.json
Step 2: Populate the MongoDB Database
Now that the data has been parsed, it needs to be used to populate, or seed, the MongoDB database. Start the development server:POST
request to the following route:
After about 20 seconds, if you see the
✅ Seeding successful.
message in
your terminal, then you have successfully populated your database.