Giter Site home page Giter Site logo

iasur's Introduction

iasur

A very thin web and api based file upload and distribution service.

iasur is copyright 2014-2017 by DracoBlue http://dracoblue.net

Installation

Install from npm (global):

$ sudo npm install -g iasur

or local:

$ npm install iasur

You might fetch the latest version from git:

$ git clone https://github.com/DracoBlue/iasur.git iasur
$ cd iasur
$ npm install #to fetch dependencies

Usage

Initialize the server directory with:

$ mkdir project
$ cd project
$ iasur create
Initializing folder for iasur:
 - folders: /home/you/project/folders/
 - files: /home/you/project/files/
Done!

Serve folder with: /usr/local/bin/iasur serve http://127.0.0.1:1337/

and thens serve the directory:

$ iasur serve http://127.0.0.1:1337/
Server running at http://127.0.0.1:1337/

Enable theming

If you want to have a custom theme for your iasur server, run:

$ iasur enable-theming
Initializing ./views folder for iasur:
 - ./views/_footer.twig
 - ./views/_header.twig
 - ./views/files.twig
 - ./views/upload_files.twig
 - ./views/upload_zip.twig
Done!

Now you can modify the files at ./views/{_header.twig,_footer.twig} to modify the header and footer.

That's it!

Run tests

$ make test
Execute all Tests
- launched test server at http://127.0.0.1:32457 with pid 38995
Server running at http://127.0.0.1:32457/
- push 2 files (html)
- push zip file (html)
- push 2 files (json)
- push zip file (json)
- killed server at pid 38995

Changelog

  • 1.2.0 (2017/08/06)
    • normalize base url #2
  • 1.1.0 (2014/03/23)
    • use local folder ./views as local theme
    • made views, files and folders relative to process.cwd() #1
  • 1.0.0 (2014/03/23)
    • added option to create a theme
    • initial release

License

iasur is licensed under the terms of MIT.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.