File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -21,51 +21,6 @@ cosmic/
2121
2222---
2323
24- ## ⚡ Quick Setup (IGNORE)
25-
26- ### 1. Install Ultraviolet
27-
28- ``` bash
29- npm install @titaniumnetwork-dev/ultraviolet
30- ```
31-
32- Then copy the built files from ` node_modules/@titaniumnetwork-dev/ultraviolet/dist/ ` into your ` uv/ ` folder:
33- - ` uv.bundle.js `
34- - ` uv.handler.js `
35- - ` uv.sw.js `
36-
37- ### 2. Register the Service Worker
38-
39- Add this to your ` app.js ` (already stubbed — just uncomment after UV is installed):
40-
41- ``` js
42- if (' serviceWorker' in navigator ) {
43- navigator .serviceWorker .register (' /uv/uv.sw.js' , { scope: __uv$config .prefix })
44- .then (() => console .log (' UV SW registered' ))
45- .catch (console .error );
46- }
47- ```
48-
49- ### 3. Serve with a backend
50-
51- Ultraviolet requires a Node.js server. The simplest option:
52-
53- ``` bash
54- npm install express @titaniumnetwork-dev/ultraviolet http-party/node-http-proxy
55- ```
56-
57- Or use the official ** Ultraviolet-App** starter:
58- ``` bash
59- git clone https://github.com/titaniumnetwork-dev/Ultraviolet-App
60- ```
61- Then drop your ` index.html ` , ` style.css ` , and ` app.js ` into its ` public/ ` folder.
62-
63- ### 4. Edit the UV prefix (optional)
64-
65- In ` uv/uv.config.js ` , change ` prefix ` if you want a different route:
66- ``` js
67- prefix: " /uv/service/" ,
68- ```
6924
7025---
7126
You can’t perform that action at this time.
0 commit comments