Skip to content

Commit 10f7002

Browse files
author
Carmine DiMascio
committed
update readme
1 parent 4bf339f commit 10f7002

File tree

1 file changed

+13
-17
lines changed

1 file changed

+13
-17
lines changed

README.md

Lines changed: 13 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -23,23 +23,6 @@ npm install node-mongodb-fixtures -g
2323

2424
---
2525

26-
## Try the Example
27-
28-
The following example will load the example fixtures into a MongoDB database
29-
30-
#### Prequisite
31-
32-
- A valid MongoDB connection string
33-
- node-mongodb-fixtures (_This example assumes it is installed globally_)
34-
35-
### Run
36-
37-
- clone this repo to get the sample fixtures i.e. `./examples/fixtures`
38-
- Execute
39-
`shell ❯ mongodb-fixtures load -u mongodb://localhost:27017/mydb --path ./examples/fixtures`
40-
41-
---
42-
4326
## Usage
4427

4528
### Programmatic
@@ -65,6 +48,19 @@ fixtures
6548
6649
[See detailed cli usage below](#cli-usage)
6750
51+
---
52+
53+
## Try the Example
54+
55+
The following example will load the example fixtures into a locally running MongoDB. To use another DB modify the the connection url accordingly (in step 2)
56+
57+
### Run
58+
59+
1. `git clone https://github.com/cdimascio/node-mongodb-fixtures && cd node-mongodb-fixtures && npm install`
60+
- `bin/mongodb-fixtures load -u mongodb://localhost:27017/mydb --path ./examples/fixtures`
61+
62+
---
63+
6864
## Create fixtures
6965
7066
#### How

0 commit comments

Comments
 (0)