Skip to content

Latest commit

 

History

History
33 lines (21 loc) · 499 Bytes

README.md

File metadata and controls

33 lines (21 loc) · 499 Bytes

##Batton

Node.JS Static File Server with an API for uploading

###Starting Server

node app.js

###Uploading

var superagent = require('superagent')
var url = 'http://www.drurly.com/images/sinatra_screenshot.png'

request.post('http://localhost:5000/upload')
.send({ url: url, name: 'test.png' })
.end(callback)

###Viewing Assets

Visit http://localhost:5000/public/images/test.png

###Testing

Run this command with the server started.

jasmine-node spec/