This file contains hidden or 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 app, | |
logger, | |
client, | |
server, | |
rackspaceImageContainer, | |
config = require('./config.json'), | |
express = require('express'), | |
formidable = require('formidable'), | |
http = require('http'), | |
log = require('./logging'), |
This file contains hidden or 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
request = require 'request' | |
fs = require("fs") | |
baseUri = "http://localhost:8000" | |
r = request.post baseUri + "/images", (err, res, body) -> | |
if err | |
console.log err | |
form = r.form() | |
form.append "image", fs.createReadStream("testImage") |
This file contains hidden or 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
// Generated by CoffeeScript 1.4.0 | |
(function() { | |
var baseUri, fs, http, should; | |
should = require("should"); | |
http = require("request"); | |
fs = require("fs"); |