Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/dauntlessdev/dart_mongo-starter

used mongo db for creating a RESTFUL API in dart
https://github.com/dauntlessdev/dart_mongo-starter

dart mongo-dart mongo-db restful-api

Last synced: 17 days ago
JSON representation

used mongo db for creating a RESTFUL API in dart

Awesome Lists containing this project

README

        

# 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/](https://docs.mongodb.com/manual/administration/install-community/) and select your OS for instructions.

## Upload json dataset into database

1. Start your MongoDB server

```bash
mongod
```

2. Import person.json with `mongoimport` executable

```bash
mongoimport --jsonArray -d -c --file
```

## Run the project

Execute this command in your terminal:

```bash
dart bin/main.dart
```