Skip to content

Instantly share code, notes, and snippets.

View ravi-ture's full-sized avatar

Ravi Ture ravi-ture

View GitHub Profile
@mikermcneil
mikermcneil / example-of-how-to-import-data-into-sails-app.js
Last active March 23, 2020 10:59
An example script that imports data from a JSON file into a Sails.js app (feel free to use as a seed/boilerplate script, whatever you like)
#!/usr/bin/env node
/**
* Module dependencies
*/
var Async = require('async');
var Filesystem = require('machinepack-fs');
var Prompts = require('machinepack-prompts');
var Sails = require('sails').Sails;