Skip to content

esetnik/contrived

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 

Repository files navigation

#Contrived ###a simple way to load contrived data for your node app


##Usage

  1. Create a contrived/ directory at the root of your node app

    app.coffee
    contrived/
    package.json
    
  2. Create yaml model files for each model you would like to load

    contrived/
      users.yaml
      tasks.yaml
    

    an example users.yaml would look like:

    - firstName:  John
      lastName:   Doe
      email:      [email protected]
    - firstName:  Jane
      lastName:   Dame
      email:      [email protected]
  3. Require the contrived module

    contrived = require 'contrived'
  4. Use some contrived data

    console.log contrived.users

##Todo

  • support additional data formats
  • support nested contrives

About

a simple way to load contrived data for your node app

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published