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
- Host: GitHub
- URL: https://github.com/noviel/minimal-static-server
- Owner: Noviel
- License: mit
- Created: 2017-05-23T12:17:11.000Z (about 9 years ago)
- Default Branch: master
- Last Pushed: 2017-05-23T12:38:09.000Z (about 9 years ago)
- Last Synced: 2025-02-05T02:17:19.704Z (over 1 year ago)
- Language: JavaScript
- Size: 4.88 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
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`