Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/zbinlin/tiny-server
A tiny Web Server
https://github.com/zbinlin/tiny-server
Last synced: 4 days ago
JSON representation
A tiny Web Server
- Host: GitHub
- URL: https://github.com/zbinlin/tiny-server
- Owner: zbinlin
- Created: 2015-07-16T09:42:27.000Z (over 9 years ago)
- Default Branch: master
- Last Pushed: 2022-07-30T14:00:21.000Z (over 2 years ago)
- Last Synced: 2024-10-14T00:12:39.510Z (about 1 month ago)
- Language: JavaScript
- Size: 16.6 KB
- Stars: 4
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# tiny-server
A tiny Web Server
## Install
You can install to global
```shell
npm install -g tiny-server
```or as a module
```shell
npm install tiny-server
```## Usage
### global
```shell
tiny-server
```It will use terminal's current working directory as the web server's root directory.
And the server's port is 3000.You can specify a path as web server's root directory:
```shell
tiny-server ./www
```You can export environment `PORT` value as the server's port:
```shell
export PORT=3001 && tiny-server;
```