From 1b439218ef03443d5223fd0abce5954f42290979 Mon Sep 17 00:00:00 2001 From: Alexander Petric Date: Mon, 16 Sep 2024 18:14:14 -0400 Subject: [PATCH] caddy not needed for frontend dev with cloud backend (#4397) --- README.md | 23 +++++++++++++++++------ 1 file changed, 17 insertions(+), 6 deletions(-) diff --git a/README.md b/README.md index b5a14eda554cb..eb6c64ee2ae7d 100644 --- a/README.md +++ b/README.md @@ -352,14 +352,25 @@ you to have it being synced automatically everyday. | DISABLE_RESPONSE_LOGS | false | Disable response logs | Server | ## Run a local dev setup +See the [./frontend/README_DEV.md](./frontend/README_DEV.md) file for all +running options. + ### only Frontend This will use the backend of but your own frontend -with hot-code reloading. -1. Install [caddy](https://caddyserver.com) -2. Go to `frontend/`: - 1. `npm install`, `npm run generate-backend-client` then `npm run dev` - 2. In another shell `sudo caddy run --config CaddyfileRemote` -3. Et voilĂ , windmill should be available at `http://localhost/` +with hot-code reloading. Note that you will need to use a username / password login due to CSRF checks using a different auth provider. + +In the `frontend/` directory: + +1. install the dependencies with `npm install` (or `pnpm install` or `yarn`) +2. generate the windmill client: + ``` + npm run generate-backend-client + ## on mac use + npm run generate-backend-client-mac + ``` +3. Run your dev server with `npm run dev` +4. Et voilĂ , windmill should be available at `http://localhost/` + ### Backend + Frontend See the [./frontend/README_DEV.md](./frontend/README_DEV.md) file for all running options.