https://github.com/xan105/node-qwebsrv
Quick web server for easy dev with static files and modern web browser and their pseudo security limitation
https://github.com/xan105/node-qwebsrv
nodejs server static web
Last synced: about 1 month ago
JSON representation
Quick web server for easy dev with static files and modern web browser and their pseudo security limitation
- Host: GitHub
- URL: https://github.com/xan105/node-qwebsrv
- Owner: xan105
- License: mit
- Created: 2022-02-22T18:20:29.000Z (over 4 years ago)
- Default Branch: main
- Last Pushed: 2025-08-25T13:06:29.000Z (10 months ago)
- Last Synced: 2025-09-27T02:26:32.209Z (9 months ago)
- Topics: nodejs, server, static, web
- Language: JavaScript
- Homepage:
- Size: 187 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Funding: .github/FUNDING.yml
- License: LICENSE
Awesome Lists containing this project
README
About
=====
Quick web server for easy dev with static files and modern web browser and their pseudo security limitation.
Install & Usage
===============
1. Install the package.
```
npm i -D @xan105/qwebsrv
```
2. Configure it by adding a `config` obj in your `package.json`.
Here are the default options:
```js
{
"config": {
"host": "localhost",
"port": 80,
"proxy": false, /*set to true only if you're behind a reverse proxy
(Heroku, Bluemix, AWS ELB, Nginx, etc)*/
"cors": true,
"csp": false, //default secure csp header rules
"root": "./docs", //GitHub Pages
"index": "index.html",
"spa": false,
"404": "404.html",
"etag": false,
"maxAge": "1m"
}
}
```
Change what you need and you can omit the rest.
3. Add a script entry in your `package.json` to start the server.
Example:
```json
{
"scripts": {
"start": "websrv"
}
}
```