Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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
- Host: GitHub
- URL: https://github.com/dauntlessdev/dart_mongo-starter
- Owner: DauntlessDev
- Created: 2020-08-28T21:38:12.000Z (over 4 years ago)
- Default Branch: master
- Last Pushed: 2020-08-31T21:38:23.000Z (over 4 years ago)
- Last Synced: 2024-12-21T00:16:23.599Z (17 days ago)
- Topics: dart, mongo-dart, mongo-db, restful-api
- Language: Dart
- Homepage:
- Size: 10.7 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
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
```