This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
'use strict'; | |
const fs = require('fs'); | |
const AWS = require('aws-sdk'); | |
const S3 = new AWS.S3(); // pass in config if you need to, use default credentials location | |
module.exports = (bucket, key, dest) => { | |
return new Promise((resolve, reject) => { | |
let ws = fs.createWriteStream(dest); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(function () { | |
'use strict'; | |
var angular = require('angular'); | |
var io = require('socket.io-client'); | |
angular | |
.module('socket.io', []) | |
.provider('$socket', $socketProvider); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
'use strict'; | |
const browserify = require('browserify'); | |
const browserSync = require('browser-sync'); | |
const gulp = require('gulp'); | |
const gutil = require('gulp-util'); | |
const nodemon = require('gulp-nodemon'); | |
const uglify = require('gulp-uglify'); | |
const watchify = require('watchify'); | |
const jshint = require('gulp-jshint'); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
'use strict'; | |
var winston = require('winston'); | |
var DailyRotateFile = require('winston-daily-rotate-file'); | |
winston.emitErrs = true; | |
var logger = new winston.Logger( { | |
transports: [ | |
new winston.transports.Console({ | |
level: 'debug', |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?xml version="1.0" encoding="utf-8"?> | |
<configuration> | |
<appSettings> | |
<!-- | |
All appSettings are made available to your Node.js app via environment variables | |
You can access them in your app through the process.env object. | |
process.env.<key> | |
--> |