Skip to content
/ liarjs Public

Populate a fake, but real-life db data.

License

GPL-2.0, MIT licenses found

Licenses found

GPL-2.0
LICENSE
MIT
LICENSE-MIT
Notifications You must be signed in to change notification settings

0xmtn/liarjs

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

liar

Populate a fake, but real-life db data.

Getting Started

Install the module with: npm install liar

..:* mtn$ liar path/to/model/schema

Documentation

Designed primarily for Node.js. Supports only MongoDB for now. All NoSQL and SQL Databases will be supported soon.

Examples

bash-3.2$ liar models/_sch_usermedia.js 
Creating Maps..
Clearing unnecessary fields
Indentified schema types are as follows: 
0. userID: id
1. media.mediaUrl: media
2. media.dateAdded: date
3. media._id: id
Is this correct? (y/n): n
Type the number of the pathmap that you want to change type of: 2
id: Is this path an id (I.e. 45678)?
name: Is this path a name field (i.e John)?
middlename: Is this path a middle name field (i.e Carl)?
surname: Is this path a surname field (i.e Jackson)?
fullname: Is this path a fullname field (i.e Gary Nick Scherzinger)?
url: Is this path a site url or permalink field (i.e http://google.com)?
mediaUrl: Is this path a media url field (i.e )?
date: Is this path a date field (i.e 2013-04-15)?
dateAndTime: Is this path a datetime field (i.e 2012-05-23 14:03:56)?
time: Is this path a time field (i.e 08:13:42)?
Pick a type from the list above: dateAndTime
Renewed schema types are as follows:
...

Contributing

(Coming Soon)

Release History

(Nothing yet)

License

Copyright (c) 2015 Metin Emenullahi Licensed under the MIT license.

About

Populate a fake, but real-life db data.

Resources

License

GPL-2.0, MIT licenses found

Licenses found

GPL-2.0
LICENSE
MIT
LICENSE-MIT

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published