You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

43 lines
2.2 KiB

7 years ago
7 years ago
11 years ago
7 years ago
9 years ago
9 years ago
9 years ago
7 years ago
7 years ago
7 years ago
9 years ago
9 years ago
11 years ago
7 years ago
11 years ago
7 years ago
11 years ago
  1. [![npm (tag)](https://img.shields.io/npm/v/local-web-server/next.svg)](https://www.npmjs.org/package/local-web-server)
  2. [![npm module downloads](https://img.shields.io/npm/dt/local-web-server.svg)](https://www.npmjs.org/package/local-web-server)
  3. [![Build Status](https://travis-ci.org/lwsjs/local-web-server.svg?branch=next)](https://travis-ci.org/lwsjs/local-web-server)
  4. [![Dependency Status](https://david-dm.org/lwsjs/local-web-server/next.svg)](https://david-dm.org/lwsjs/local-web-server/next)
  5. [![js-standard-style](https://img.shields.io/badge/code%20style-standard-brightgreen.svg)](https://github.com/feross/standard)
  6. [![Join the chat at https://gitter.im/lwsjs/local-web-server](https://badges.gitter.im/Join%20Chat.svg)](https://gitter.im/lwsjs/local-web-server?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge&utm_content=badge)
  7. **This documentation is a work in progress**
  8. # local-web-server
  9. The modular development web server for productive front-end and full-stack engineers. Use this tool to:
  10. * Help build a web application using any architecture (static website, Single Page Application with client-side rendering, dynamic app with server-side rendering, Progressive Web App etc.)
  11. * Prototype a web service (REST API, microservice, websocket server application etc)
  12. Agnostic which front-end framework (React, Polymer, Angular etc) you use, if any.
  13. ## Synopsis
  14. This package installs the `ws` command-line tool. The most simple use case is to run `ws` without any arguments - this will host the current directory as a static web site.
  15. ```sh
  16. $ ws
  17. Serving at http://mbp.local:8000, http://127.0.0.1:8000, http://192.168.0.100:8000
  18. ```
  19. Opening any of the listed URLs in your browser will open your home page (`index.html` by default) if one exists, else show a directory listing.
  20. ## Advanced Usage
  21. Being modular and extensible, there are many possibilites how to use this tool for more advanced usage.
  22. ## Install
  23. Requires node v7.6 or higher. Install the [previous release](https://github.com/lwsjs/local-web-server/tree/v1.x) for node >= v4.0.0.
  24. ```sh
  25. $ npm install -g local-web-server@next
  26. ```
  27. * * *
  28. &copy; 2013-17 Lloyd Brookes <75pound@gmail.com>. Documented by [jsdoc-to-markdown](https://github.com/jsdoc2md/jsdoc-to-markdown).