Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
JavaScript
branch: master

Fetching latest commit…

Cannot retrieve the latest commit at this time

Failed to load latest commit information.
fixtures
mongo_data
schemas
.gitignore
mongoose-fixture-config.js
package.json
readme.md

readme.md

Mongoose-Fixture Example

This is example repository is the end result of the documentation complete with everything you need to get started using mongoose-fixture.

Getting the Example

First clone this repo with

git clone git@github.com:mgan59/mongoose-fixture-example.git mongoose-fixture-example/
cd mongoose-fixture-example

Use npm to install dependencies

npm install -g mongoose-fixture
npm install .

Setting up a mongo instance

If you don't have mongodb installed yet, please do so, just google for howto as mongodb installation falls out of scope for this document.

Otherwise if you already have a mongodb server running the following command

mkdir mongo_data
mkdir mongo_data/data
mongod --port 27017 --fork --journal --logpath mongo_data/logfile --dbpath mongo_data/data

Run Mongoose-Fixture

Running the command below will create a db and the pre-defined collections

mongoose-fixture --fixture='all' --reset
Something went wrong with that request. Please try again.