Dart and MongoDB
This projects demonstrates how to talk to a MongoDB database.
Download and Install MongoDB
Visit https://docs.mongodb.com/manual/administration/install-community/ and select your OS for instructions.
Upload json dataset into database
-
Start your MongoDB server
mongod
-
Import person.json with
mongoimport
executablemongoimport --jsonArray -d <yourDatabaseName> -c <yourCollectionName> --file <path/To/File.json>
Run the project
Execute this command in your terminal:
dart bin/main.dart
Created from templates made available by Stagehand under a BSD-style license.