GithubHelp home page GithubHelp logo

tatchi / reserv Goto Github PK

View Code? Open in Web Editor NEW
5.0 3.0 0.0 955 KB

Static files server in Reason Native

License: MIT License

JavaScript 51.76% Reason 48.07% C++ 0.17%
server static-file-server reasonml reason-native

reserv's Introduction

Reserv

Static file server with auto-reloading written in reason native. This project is heavily inspired by servor but not as polished and without all the nice features it comes with. I built this mostly for fun and learning so if you need something robust, definitely reach out for something else. There are great alternatives such as servor, sirv or serve.

Install

$ npm install --save reserv

Note: This module can also be installed and used globally

Usage

$ reserv --help
NAME
       reserv - Start a static file server

SYNOPSIS
       reserv [OPTION]... [DIRECTORY]

ARGUMENTS
       DIRECTORY (absent=.)
           Directory to serve

OPTIONS
       -p PORT, --port=PORT (absent=8000)
           Port the server will be running on.

       -r ROOT_FILE, --rootFile=ROOT_FILE (absent=index.html)
           Default file to serve if no path (/).

BUGS
       File bug reports at https://github.com/tatchi/reserv

COMMON OPTIONS
       --help[=FMT] (default=auto)
           Show this help in format FMT. The value FMT must be one of `auto',
           `pager', `groff' or `plain'. With `auto', the format is `pager` or
           `plain' whenever the TERM env var is `dumb' or undefined.

       --version
           Show version information.

Example

reserv build -p 8000 -r index.html

Credit ❤️

Thanks to ulrikstrid and aantron for their awesome libraries (morph & luv)

reserv's People

Contributors

tatchi avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

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.