Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/mgan59/mongoose-fixture-example
https://github.com/mgan59/mongoose-fixture-example
Last synced: 2 days ago
JSON representation
- Host: GitHub
- URL: https://github.com/mgan59/mongoose-fixture-example
- Owner: mgan59
- Created: 2013-08-18T03:38:40.000Z (over 11 years ago)
- Default Branch: master
- Last Pushed: 2013-11-19T22:33:42.000Z (almost 11 years ago)
- Last Synced: 2023-03-11T20:49:24.266Z (over 1 year ago)
- Language: JavaScript
- Size: 113 KB
- Stars: 2
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: readme.md
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-exampleUse 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