Skip to content
Open
Show file tree
Hide file tree
Changes from 1 commit
Commits
Show all changes
45 commits
Select commit Hold shift + click to select a range
e09a550
fix put file upload with existing file
kzahel Mar 4, 2017
6d7b130
fix connection close issue with curl
kzahel Jun 6, 2017
72c5991
Add support for index.xhtml and index.xhtm
Jul 20, 2017
90319a0
Make index.xhtm(l) prefered over index.htm(l)
Jul 20, 2017
343b4e9
Merge pull request #103 from PorygonZRocks/patch-1
kzahel Jul 20, 2017
56b1bd6
fix CORS headers OPTIONS preflight for PUT
kzahel Sep 22, 2017
1534fe8
make .finish() always wait for write buffer empty
kzahel Nov 4, 2017
61cef78
Automatic folder creation during file upload
oleg-khymchenko-kh Jan 21, 2018
7034bff
Merge pull request #126 from oleg-khymchenko-kh/master
kzahel Jan 21, 2018
a473a3c
Fix directory listing view in Firefox
scheinercc Mar 17, 2018
6db00cf
Merge pull request #137 from scheinercc/patch-1
kzahel Mar 17, 2018
5426e15
Modifying CSS to fit Edge/IE rendering, this has no effect on chrome
lon3wolf Apr 8, 2018
c81f66b
Update directory-listing-template.html
lon3wolf Apr 8, 2018
29ee56c
Merge pull request #140 from lon3wolf/master
kzahel Apr 8, 2018
2962435
Simplify minimize.sh script
sdegutis May 2, 2018
dad73b5
Merge pull request #142 from sdegutis/patch-1
kzahel May 2, 2018
8140b45
Support receiving spaces in POST form fields
danopia Jun 9, 2018
fb5e095
Support zero-length POST bodies
danopia Jul 4, 2018
f7bdc4c
Merge pull request #149 from stardustapp/master
kzahel Jul 9, 2018
0329c4e
Added mime type for mjs.
ahmetkizilay Nov 11, 2018
e49e15a
Merge pull request #161 from ahmetkizilay/mjs-mimetype
kzahel Nov 12, 2018
5202439
add bug report as comment
kzahel Dec 26, 2018
b74a4b4
fix typo
kzahel Jan 15, 2019
cb300b1
add mime type for .wasm
Feb 25, 2019
91190d2
Merge pull request #168 from chhschou/master
kzahel Feb 25, 2019
556ad9a
react ui rewrite
kzahel Dec 27, 2019
f64314d
do some styling
kzahel Jan 10, 2020
fc94630
try and fix the options to work with new ui
kzahel Jan 10, 2020
2a1b2b2
cleanup and finalize release
kzahel Jan 11, 2020
ad46f1e
update readme
kzahel Jan 11, 2020
d2b87ce
Merge pull request #201 from kzahel/react-ui
kzahel Jan 11, 2020
2465bdf
add makedeps
kzahel Jan 28, 2020
c6e9056
forgot babelrc
kzahel Mar 12, 2020
e658424
Update README.md
kzahel Jul 17, 2020
2652311
forgot babelrc
kzahel Jul 30, 2020
6f156d7
Made https work, altough very unpolished yet
mumme74 Apr 1, 2021
5a57d61
Add .gitignore
mumme74 Apr 2, 2021
f857b20
More changes, got https to work
mumme74 Apr 2, 2021
6f98b47
Added https functionality to GUI
mumme74 Apr 3, 2021
b636f16
Cleanup
mumme74 Apr 3, 2021
a778e67
More cleanup before pull request
mumme74 Apr 3, 2021
3e20c13
Do suggestions from maintainer during pull request.
mumme74 Apr 4, 2021
7ee08df
Merge pull request #260 from mumme74/ssl
kzahel Apr 6, 2021
b91f2aa
Revise README for Chrome Extension transition
kzahel Dec 5, 2025
9300dbe
Update notification link in README.md
kzahel Dec 5, 2025
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
update readme
  • Loading branch information
kzahel committed Jan 11, 2020
commit ad46f1e389366d63862bb223786b37890b2e1801
32 changes: 22 additions & 10 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
<a target="_blank" href="https://chrome.google.com/webstore/detail/web-server-for-chrome/ofhbbkphhbklhfoeikjpcbhemlocgigb">![Try it now in CWS](https://raw.github.com/GoogleChrome/chrome-app-samples/master/tryitnowbutton.png "Click here to install this sample from the Chrome Web Store")</a>

# Chrome Web Server - an HTTP web server for Chrome (chrome.sockets)
## Web Server for Chrome

an HTTP web server for Chrome (chrome.sockets)

Get it in the chrome web store:
https://chrome.google.com/webstore/detail/web-server-for-chrome/ofhbbkphhbklhfoeikjpcbhemlocgigb
Expand Down Expand Up @@ -28,8 +30,7 @@ How to include into your own chrome app

run minimize.sh to concatenate all the required files together and then include the resulting wsc-chrome.min.js in your project. Here is an example of another project's usage: https://github.com/zebradog/kiosk/blob/f7a398f697edc1c22b90c14f959779f1e850012a/src/js/main.js#L124

===
Basic usage:
### Basic usage:

```
var app = new WSC.WebApplication(options)
Expand Down Expand Up @@ -82,14 +83,25 @@ handlers is an array of 2 element arrays where the first item is a regular expre
```


====
Building
====
Unfortunately there is a build process if you want to run this from source directly because I am using a Polymer (polymer-project.org) user interface. There is a bower.json in the polymer-ui folder and you will need to install node+npm+bower and then run bower install from that folder. Oh, and then you will need to "Refactor for CSP" (chrome apps do not allow inline scripts), one way of doing this is using https://chrome.google.com/webstore/detail/chrome-dev-editor-develop/pnoffddplpippgcfjdhbmhkofpnaalpg (open the folder and right click and select refactor for CSP)

I'm now using a script that can do this (look in polymer-ui/build.sh. You'll need to npm install -g vulcanize crisper)
### Building

```
cd web-server-chrome
cd makedeps
npm install
npm run make # this builds the app dependencies such as react and material-ui into a bundle
cd ../react-ui
npm run watch # Press ctrl-c if you just want to build it once.
# press ctrl-C if you are done editing
cd ../
bash package.sh
```

This creates package.zip, which can then be distributed.


====
### Where to get it

Get it in the chrome web store:
https://chrome.google.com/webstore/detail/web-server-for-chrome/ofhbbkphhbklhfoeikjpcbhemlocgigb
Expand All @@ -101,7 +113,7 @@ handle range requests. It also sets mime types correctly.
Here is an example project based on it:
https://chrome.google.com/webstore/detail/flv-player/dhogabmliblgpadclikpkjfnnipeebjm

====
---

MIT license

Expand Down
4 changes: 2 additions & 2 deletions manifest.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"key":"MIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEAv7ZULSqbpKKQ1QP5Tb9f8g306PlY87OYYlXBrp7PlBHd/LJMUBDNWMCrWhpFR8sIjpvHjYipDr60j+2i7vj3PZlwbxZ7e3x+2A4cQt1LaC1PVZ6avnbsV0YMkFQi8H5f7NQiBKE2i2/Z/kB2r/DzyiUdGW63/sgjpBvgDCCMysHl3NWCnHqIOOtGD8SFlT5clgNJgVOgosFwHE4yYJDpIkvJ+nrLia9v6V/Cyc8ITEd0njvsp0q0aFJp332Ua/RPvh/m1UKcj8f3FNbaCrdScFzfKo5UNmifKLGhT377xhnvhOKuEJbyghNkPheMUquwVpTEHdRFMm7nVcLAt/kuZwIDAQAB",
"name": "Web Server for Chrome(dev)",
"short_name": "Web Server(dev)",
"name": "Web Server for Chrome",
"short_name": "Web Server",
"description": "A Web Server for Chrome, serves web pages from a local folder over the network, using HTTP. Runs offline.",
"author": "Kyle Graehl",
"version": "0.5.0",
Expand Down
1 change: 1 addition & 0 deletions polymer-ui/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
not used any more. see https://github.com/kzahel/web-server-chrome/issues/199