An open API service indexing awesome lists of open source software.

https://github.com/noviel/minimal-static-server

Minimal static server with express
https://github.com/noviel/minimal-static-server

Last synced: about 1 year ago
JSON representation

Minimal static server with express

Awesome Lists containing this project

README

          

# minimal-static-server
Minimal static server with express.

## Install

```sh
git clone git@github.com:Noviel/minimal-static-server.git my-app
cd my-app
npm install
```

## Usage

1. Place static content inside `static` folder
2. Run `npm start`
3. Open `localhost:9002`

## Customize

Provide `NODE_IP` and `PORT` environmental variables to modify `ip` and `port` of the server.

On Linux: `PORT=4200 NODE_IP=0.0.0.0 npm start`
On Windows: `SET PORT=4200 && SET NODE_IP=0.0.0.0 && npm start`