/dart_mongo

This project demonstrates how to talk to a MongoDB database using Dart.

Primary LanguageDart

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

  1. Start your MongoDB server

    mongod
  2. Import person.json with mongoimport executable

    mongoimport --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.