Skip to content
This project demonstrates how to talk to a MongoDB database using Dart.
Branch: master
Clone or download
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
bin Implement a REST endpoint to interface with Mongo. May 2, 2019
lib Inital commit. Apr 25, 2019
test Inital commit. Apr 25, 2019
.gitignore Inital commit. Apr 25, 2019
CHANGELOG.md Inital commit. Apr 25, 2019
README.md Inital commit. Apr 25, 2019
analysis_options.yaml Inital commit. Apr 25, 2019
people.json Inital commit. Apr 25, 2019
pubspec.yaml Inital commit. Apr 25, 2019

README.md

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.

You can’t perform that action at this time.