kamikitty / ResilientSmartGarden

0 stars 0 forks source link

Import Companion Planting data into database #62

Closed jasonplojo closed 6 years ago

jasonplojo commented 6 years ago

Successfully imported "companion_plant_database.json" into MongoDB.

Had to remove comments and make adjustments to the formatting to import. Also fixed missing syntax that MongoDB complained about.

Use the following command to import the database:

mongoimport --db companionplant --collection companion --drop --file /path/to/json/file/companion_plant_database.json

Make sure MongoDB is running before executing the command. The companion planting database will be separate from the user and garden database, as specified in the "db" option. Should import 89 documents from the JSON file.