Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/pkolt/frontserv
Simple frontend static server
https://github.com/pkolt/frontserv
Last synced: 7 days ago
JSON representation
Simple frontend static server
- Host: GitHub
- URL: https://github.com/pkolt/frontserv
- Owner: pkolt
- License: mit
- Created: 2014-02-01T07:08:28.000Z (almost 11 years ago)
- Default Branch: master
- Last Pushed: 2015-09-10T16:21:48.000Z (about 9 years ago)
- Last Synced: 2024-10-15T12:12:34.191Z (about 1 month ago)
- Language: JavaScript
- Size: 141 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE.md
Awesome Lists containing this project
README
# frontserv [![Build Status](https://travis-ci.org/pkolt/frontserv.svg)](https://travis-ci.org/pkolt/frontserv)
Simple static http-server for frontend.
## Installation
```bash
$ npm install frontserv -g
```## Quick Start
```bash
$ frontserv
```## Usage
### Root dir (--dir, -d)
```bash
$ frontserv --dir /home/user/www-data
```Default: current dir
### Host (--host, -H)
```bash
$ frontserv --host 192.168.1.34
```Default: localhost
### Port (--port, -p)
```bash
$ frontserv --port 8080
```Default: 8000
### Autoindex (--autoindex)
Show list of files in the directory.
```bash
$ frontserv --autoindex
```### Version (--version, -v)
```bash
$ frontserv --version
```### Help (--help, -h)
```bash
$ frontserv --help
```## Tests
To run the test suite, first install the dependencies, then run `npm test`:
```bash
$ npm install
$ npm test
```## License
[MIT](LICENSE.md)