Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings
This repository was archived by the owner on Nov 8, 2018. It is now read-only.

Commit 5052002

Browse files
committed
Updated readme to reflect how to setup the database;
Added the shipments collection exported file to the project so anyone can import into the database;
1 parent 3046df5 commit 5052002

File tree

2 files changed

+3011
-0
lines changed

2 files changed

+3011
-0
lines changed

‎README.md‎

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,10 +32,21 @@
3232

3333
```bash
3434
$ npm install
35+
$ npm install lodash
36+
```
37+
38+
You'll need to install version 4.0.1 of MongoDB
39+
After you've installed both open your terminal and type 'mongod'. If you get an error make sure you have a folder /data/db with 777 privileges.
40+
After this then open a new terminal and navigate to the root of this project where "shipments.json" is located.
41+
Then you'll need to run this command
42+
```
43+
mongoimport --db quickload --collection shipments --type json --jsonArray --file shipments.json
3544
```
3645

3746
## Running the app
3847

48+
Make sure to have Mongodb running before starting this server using the command 'mongod'
49+
3950
```bash
4051
# development
4152
$ npm run start

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /