@questdb/web-console 0.0.7 → 0.0.9

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (3) hide show
  1. package/README.md +51 -26
  2. package/dist/qdb.js +1 -1
  3. package/package.json +1 -1
package/README.md CHANGED
@@ -7,49 +7,74 @@ Yarn@3 and Webpack.
7
7
 
8
8
  ## Local development setup
9
9
 
10
- ## TL;DR;
10
+ You need to do the following steps:
11
11
 
12
- ```
13
- git clone git@github.com/questdb/ui.git
14
- cd ui
15
- docker run -p 9000:9000 -p 9009:9009 -p 8812:8812 questdb/questdb
16
- yarn
17
- yarn workspace @questdb/web-console start
18
- ```
12
+ 1. Clone the repository
13
+ 2. Bootstrap dependencies
14
+ 3. Start development server
15
+ 4. Run QuestDB in the background
16
+ 5. Hack!
17
+
18
+ The setup is fairly quick!
19
19
 
20
- ## Prerequisites
20
+ ### 1. Clone the repository
21
21
 
22
- * use node v16.13.1<br>
23
- version is specified in [`.nvmrc`](./.nvmrc) file. You can use [nvm](https://github.com/nvm-sh/nvm) or [fnm](https://fnm.vercel.app) to manage node versions on your machine.
24
- * monorepo is managed with [yarn@3](https://yarnpkg.com/).<br>
25
- Follow [official installation guide](https://yarnpkg.com/getting-started/install). It should be enough to run `corepack enable` to have `yarn` enabled.
26
- * This package is a frontend client for QuestDB. Therefore, it requires
27
- a locally running QuestDB instance. Check [readme.md](https://github.com/questdb/questdb#install-questdb) of QuestDB to learn how to install it.<br>
28
- If you have docker, then it's simply:
22
+ The repository is about 250MB in size. This is expected, because we use [Yarn@3 with PnP](https://next.yarnpkg.com/features/pnp).\
23
+ Download is what takes the most amount of time (~1 minute on a decent connection).
24
+
25
+ * clone using SSH:
26
+ ```
27
+ git clone git@github.com:questdb/ui.git
28
+ ```
29
+
30
+ * or using HTTPS:
29
31
  ```
30
- docker run -p 9000:9000 -p 9009:9009 -p 8812:8812 questdb/questdb
32
+ git clone https://github.com/questdb/ui.git
31
33
  ```
32
34
 
33
- ## Start development environment
35
+ * or using [Github CLI](https://cli.github.com/):
36
+ ```
37
+ gh repo clone questdb/ui
38
+ ```
34
39
 
35
- 1. Setup dependencies with yarn:
40
+ ### 2. Bootstrap dependencies
41
+
42
+ * `node -v` should return `16.13.1`\
43
+ If it doesn't, you can use [fnm](https://fnm.vercel.app) or [nvm](https://github.com/nvm-sh/nvm) to manage node versions on your machine.\
44
+ Then run `fnm use` or `nvm use` to set correct version.
45
+
46
+ * `yarn -v` should return v3 (like `3.2.1`).\
47
+ If it returns `command not found`, enable `yarn` by running `corepack enable`.\
48
+ Follow [official installation guide](https://yarnpkg.com/getting-started/install) if you have trouble.
49
+
50
+ * run `yarn` to bootstrap dependencies. This should be a quick process (less than a minute).
51
+
52
+ ### 3. Start development server
36
53
 
37
54
  ```
38
- yarn
55
+ yarn workspace @questdb/web-console start
39
56
  ```
40
57
 
41
- 2. Start development environment
58
+ [localhost:9999](http://localhost:9999) should show web console
59
+
60
+ ### 4. Run QuestDB in the background
61
+
62
+ This package is a only GUI for QuestDB, it does not include QuestDB itself.\
63
+ GUI will work without it, but since it's a tool to interact with QuestDB, you will need QuestDB as well.
64
+
65
+ Check [readme.md](https://github.com/questdb/questdb#install-questdb) of QuestDB to learn how to install it.
66
+
67
+ If you have [`docker`](https://docs.docker.com/get-docker/), then it's simply:
42
68
 
43
69
  ```
44
- yarn workspace @questdb/web-console start
70
+ docker run -p 9000:9000 -p 9009:9009 -p 8812:8812 questdb/questdb
45
71
  ```
46
72
 
47
- 3. Open [localhost:9999](http://localhost:9999)
73
+ ### 5. Hack!
48
74
 
49
- > make sure you have a local QuestDB instance running, as mentioned in
50
- > "Prerequisites" above.
75
+ Do your code changes and browser will automatically refresh [localhost:9999](http://localhost:9999).
51
76
 
52
- 4. Happy hacking!
77
+ Happy hacking!
53
78
 
54
79
  ## Run build
55
80