https://github.com/jollen/mongodb-starter-kit
MongoDB 與 NoSQL 教育訓練t
https://github.com/jollen/mongodb-starter-kit
Last synced: about 1 month ago
JSON representation
MongoDB 與 NoSQL 教育訓練t
- Host: GitHub
- URL: https://github.com/jollen/mongodb-starter-kit
- Owner: jollen
- Created: 2016-05-07T01:35:18.000Z (about 10 years ago)
- Default Branch: master
- Last Pushed: 2017-08-13T08:51:49.000Z (almost 9 years ago)
- Last Synced: 2025-12-27T11:12:09.950Z (5 months ago)
- Language: JavaScript
- Homepage: https://github.com/jollen/mongodb-starter-kit
- Size: 597 KB
- Stars: 0
- Watchers: 2
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# mongodb-starter-kit
MongoDB 入門學習環境。
## 安裝
### 啟動 Node.js 主程式
申請 [MongoLab](https://mlab.com/) 免費資料庫,並修改 ```app.js``` 填入正確的 MongoDB URI:
```
mongoose.connect('mongodb://:@ds019033.mlab.com:19033/vcard');
```
啟動主程式:
```
$ npm install
$ node app.js
```
### 匯入測試用資料庫
修改 ```scripts/0001-import-db.js``` 並填入正確的 MongoDB URI。匯入測試用資料庫:
```
$ mongo ds019033.mlab.com:19033/vcard scripts/0001-import-db.js scripts/0001-import-db.js
```