From 9ee80f4367e3fd1ad76aa6e9f44fdbceebc32372 Mon Sep 17 00:00:00 2001 From: Eddy de Vink Date: Tue, 18 Aug 2026 10:08:37 +0200 Subject: [PATCH] docs: explain public image and reproducible build --- README.md | 24 +++++++++++------------- 1 file changed, 11 insertions(+), 13 deletions(-) diff --git a/README.md b/README.md index 22cbead..7613291 100644 --- a/README.md +++ b/README.md @@ -114,40 +114,38 @@ does not download an unpatched upstream `main` branch. ## Run Locally -1. Clone the repository: +Clone the public Forgejo repository: ```bash -git clone https://github.com/avoylenko/wwebjs-api.git +git clone https://git.eddydevink.nl/eddy/wwebjs-api.git cd wwebjs-api ``` -2. Install the dependencies: +Install dependencies for local Node.js development: ```bash -npm install +npm ci ``` -**Note:** To use the latest edge version of whatsapp-web.js directly from GitHub (with the latest features and fixes), modify the `package.json` dependency: +The dependency is pinned to the patched `whatsapp-web.js` archive in +`vendor/`. Do not replace it with upstream `main` when testing this fix. -```json -"whatsapp-web.js": "github:pedroslopez/whatsapp-web.js#main" -``` +For the recommended container workflow, use the public image or the +reproducible local build described above. -Then run `npm install` again. Be aware that edge versions may contain unstable features. - -3. Copy the `.env.example` file to `.env` and update the required environment variables: +Copy the environment template and configure the required values: ```bash cp .env.example .env ``` -4. Run the application: +Run the application: ```bash npm run start ``` -5. Access the API at `http://localhost:3000` +The API is available at `http://localhost:3000` by default. ## Testing