Closed epheterson closed 3 weeks ago
@epheterson Assuming you are talking about the PWA, we already serve it from a Docker container on the GitHub Container Registry here: https://github.com/kiwix/kiwix-js-pwa/pkgs/container/kiwix-pwa/ . To be clear, this is an Ngnx-based server that serves the files necessary to run the PWA. You can run it locally with docker pull ghcr.io/kiwix/kiwix-pwa:latest
.
However, packaging the code in a Docker container is only for (our) convenience, it's not necessary if you just want to serve or run the code locally. The code works as-is when served from a cloned fork using Electron or the built-in Vite server
Here are the steps to run or serve the PWA locally. Make sure you have Git / Node / NPM installed in your computer.
npm install
npm start
. This works as is. But it also includes a local server if you want to run the PWA in another browser: you can find the URL / localhost:port in Configuration (default http://localhost:3000).npm run serve
. However, take a look at CONTRIBUTING for some gotchas with serving the code locally.Thanks, I’ll give it a shot!
Please consider making an official Docker image. This would allow for much easier setup and updating.
Thanks for this great software!