Skip to content

punit-naik/file-server

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

23 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

file-server

Clojars Project

Serves a file or directory as static assets on the web server

Usage

NOTE: Java and Leiningen must be pre-installed!

Run

You can run this project in multiple ways, see below:

  1. lein run

    This will run the server on a random free port and will serve files and folders from the directory this command is being run in.

  2. lein run 3000

    Same as above, but will run the server on port 3000

  3. lein run 3000 doc

    Same as above, but the server will serve files inside the doc directory which should be present in the directory you are running this command from.

NOTE: After the server has started, it will print out a statement saying on which port the server is running and which directory it is serving.

Test

lein test

Build

lein with-profiles +uberjar uberjar

Docs

file-server API Docs

Code Coverage

file-server Code Coverage

License

Copyright © 2020 Punit Naik

This program and the accompanying materials are made available under the terms of the Eclipse Public License 2.0 which is available at http://www.eclipse.org/legal/epl-2.0.

This Source Code may also be made available under the following Secondary Licenses when the conditions for such availability set forth in the Eclipse Public License, v. 2.0 are satisfied: GNU General Public License as published by the Free Software Foundation, either version 2 of the License, or (at your option) any later version, with the GNU Classpath Exception which is available at https://www.gnu.org/software/classpath/license.html.

About

Serves a file or directory as static assets on the web server

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published