Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/mgan59/mongoose-fixture-example


https://github.com/mgan59/mongoose-fixture-example

Last synced: 2 days ago
JSON representation

Awesome Lists containing this project

README

        

# Mongoose-Fixture Example

This is example repository is the end result of the [documentation](http://mgan59.github.io/mongoose-fixture/) complete with everything you need to get started using mongoose-fixture.

## Getting the Example

First clone this repo with

git clone [email protected]: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