serve

Command line static HTTP server server static-server
0.1.0 released

Serve

Linux Build Shards version

Command line static HTTP server

Screenshot

Installation

From sources:

$ cd ~/Projects
$ git clone https://github.com/SuperPaintman/serve
$ cd ./serve
$ crystal build --release -o ./bin/serve ./src/serve.cr
$ ln -s "$PWD/bin/serve" /usr/local/bin/serve

Usage

serve -h

Test

crystal spec

Shell tab auto-completion

To enable tab auto-completion for Serve, add one of the following lines to your ~/.zshrc file.

# Zsh, ~/.zshrc
if [[ -z $commands[serve] ]]; then
    echo 'serve is not installed, you should install it first'
else
    eval "$(serve --completion=zsh)"
fi

Contributing

  1. Fork it (https://github.com/SuperPaintman/serve/fork)
  2. Create your feature branch (git checkout -b feature/<feature_name>)
  3. Commit your changes (git commit -am 'Added some feature')
  4. Push to the branch (git push origin feature/<feature_name>)
  5. Create a new Pull Request

Contributors


API

Docs


Changelog

Changelog


License

MIT

serve:
  github: SuperPaintman/serve
  version: ~> 0.1.0
License MIT
Crystal none

Authors

Dependencies 0

Development Dependencies 0

Dependents 0

Last synced .
search fire star recently