All Projects → SuperPaintman → serve

SuperPaintman / serve

Licence: MIT license
Command line static HTTP server

Programming Languages

crystal
512 projects
Makefile
30231 projects

Projects that are alternatives of or similar to serve

app-server
Serve and apply runtime configuration to static apps
Stars: ✭ 21 (-8.7%)
Mutual labels:  static-server
go-http-file-server
Simple command line based HTTP file server to share local file system
Stars: ✭ 90 (+291.3%)
Mutual labels:  static-server
pimba
Pimba is a minimalist command-line tool written in Go to publish and serve static files.
Stars: ✭ 12 (-47.83%)
Mutual labels:  static-server
docker-nginx-static
Super Lightweight Nginx Image
Stars: ✭ 111 (+382.61%)
Mutual labels:  static-server
json-fake-server
Simple way to create http server (node js) https://www.npmjs.com/package/test-fake-server
Stars: ✭ 15 (-34.78%)
Mutual labels:  static-server

Serve

Linux Build Shards version

Command line static HTTP server

Screenshot

Installation

Download from github:

$ serve_version="0.1.1"
$ serve_arch="x86_64"
$ curl -Lo /usr/local/bin/serve.gz "https://github.com/SuperPaintman/serve/releases/download/v${serve_version}/serve-${serve_version}_linux_${serve_arch}.gz"
$ gunzip /usr/local/bin/serve.gz
$ chmod +x /usr/local/bin/serve

From sources:

$ cd ~/Projects
$ git clone https://github.com/SuperPaintman/serve
$ cd ./serve
$ make
$ sudo make install
$ # or
$ sudo make reinstall

Usage

$ serve -h

Test

$ crystal spec
# or
$ make test

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

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].