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
#!/bin/python | |
import os | |
from flask import Flask, Response, request, abort, render_template_string, send_from_directory | |
import Image | |
import StringIO | |
app = Flask(__name__) | |
WIDTH = 1000 |
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
var unirest = require('unirest'); | |
var mongoose = require('mongoose'); | |
var User = require('../models/User'); | |
var async = require('async'); | |
var secrets = require('../config/secrets'); | |
mongoose.connect(secrets.db); | |
mongoose.connection.on('error', function() { | |
console.error('MongoDB Connection Error. Make sure MongoDB is running.'); | |
}); |