You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+18-1Lines changed: 18 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -11,7 +11,7 @@ A web-based UI for ActivityWatch, built with Vue.js
11
11
Getting started with setting up the development environment is pretty straight forward:
12
12
13
13
```bash
14
-
# Start an instance of aw-server running in testing mode (on port 5666, with a separate database),
14
+
# Start an instance of aw-server running in testing mode (on port 5666, with a separate database),
15
15
# This is what the web UI will connect to by default when run in development mode.
16
16
aw-qt --testing
17
17
# or, to run without watchers:
@@ -26,6 +26,8 @@ npm ci
26
26
npm run serve
27
27
```
28
28
29
+
Alternatively, you can run `make dev` to install dependencies and serve the application locally.
30
+
29
31
You might have to configure CORS for it to work, see the CORS section below.
30
32
31
33
You may also want to generate fake data so you have something to test with, see: https://github.com/ActivityWatch/aw-fakedata/
@@ -53,8 +55,23 @@ The assets are stored in the following directories (relative to your installatio
Either copy the assets manually, or run `make build` from the `aw-server` parent directory to rebuild and copy the assets for you.
59
+
56
60
Once you've put the files in the directories, you may have to do a hard refresh in your browser to invalidate any stale caches.
57
61
62
+
If you want to actively iterate on aw-webui with your local production data, you'll want to use a development build, automatically update it, and connect a aw-server running against production data. To do this, in one terminal window run:
If you want to add `debugger` statements in your code and otherwise break linting rules, you'll need to add a `--skip-plugins=no-debugger` to that command. Then, in another terminal (with your venv activated, assuming you are using python aw-server) run:
0 commit comments