A simple, insecure file server
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
externs
resources/public
src-cljs/mini_file_server
src/mini_file_server/core
test/mini_file_server/core
.gitignore
Makefile
README.md
project.clj

README.md

mini-file-server

A simple file server written in Clojure and ClojureScript.

Build

lein bin

Run

# Using executable
target/mini-file-server ~/data-dir 3000

# Using Uberjar (optionally with extra system properties)
java -Djava.io.tmpdir=/tmp -jar target/mini-file-server-0.1.2-standalone.jar ~/data-dir 3000

API

curl -XPOST -F file=@fairy-tale.pdf -F group=books/2014 localhost:3000
  # {"url":"http://localhost:3000/books/2014/fairy-tale.pdf"}

TODO

  • Tests
  • Authentication and authorization

License

MIT