periodicjs.ext.replication
v4.0.0
Published
An extension for seeding db with data
Downloads
3
Readme
periodicjs.ext.replication
replication your current instance of periodic to a zip archieve containing your configurations, content, themes, and database.
Installation
$ npm install periodicjs.ext.replication
Usage
import database (upsert/update) with custom file replication from cli
$ node index.js --cli --extension replication --task replication [--filename optionalreplicationzipname --outputpath optionaloutputdirectory]
export database to replication file replication from cli
$ node index.js --cli --extension replication --task export --file /path/to/file.json
If no file path is specified, the default file path is content/files/replications/replications/replication-[year]-[month]-[day]-[timestamp].json
##Development Make sure you have grunt installed
$ npm install -g grunt-cli
Then run grunt watch
$ grunt watch
For generating documentation
$ grunt doc
$ jsdoc2md controller/**/*.js index.js install.js uninstall.js > doc/api.md
##Notes
- Check out https://github.com/typesettin/periodicjs for the full Periodic Documentation
- example replication: clear && node index.js --cli --extension replication --task replication --filename myreplication --outputpath ~/Downloads/myperiodicreplication