Skip to content

Commit d55c0fc

Browse files
author
Arijus Šukys
authoredJun 16, 2022
update readmes (#12)
* update root readme * update web-console readme
1 parent 78cb449 commit d55c0fc

File tree

2 files changed

+66
-21
lines changed

2 files changed

+66
-21
lines changed
 

‎README.md

+10-8
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,15 @@
11
# QuestDB UI
22

3-
> Welcome to a WIP repository!
4-
> The code here is not (yet) meant for public use. Things are not stable
5-
> and will change. Beware of dragons!
3+
> Welcome to a WIP repository<br>
4+
> The code here is not meant for public use.<br>
5+
> Things are not stable and will change. Beware of dragons!
66
7-
This repository is a monorepo hosting the implementation of QuestDB user interface and surrounding tooling.
7+
This repository is a monorepo hosting the implementation of QuestDB user
8+
interface and surrounding tooling.
89

9-
Currently hosting three packages:
10+
Currently hosting these packages:
1011

11-
* `screenshot-tests` - a utility based on puppeteer that helps to automate taking screenshots of a website and comparing them between runs
12-
* `browser-tests` - a utility based on cypress that helps to automate interactions and assert zero regressions
13-
* `react-components` - small component library for internal reuse between QuestDB products
12+
* [`web-console`](./packages/web-console) - the GUI tool, shipped with QuestDB
13+
* [`react-components`](./packages/react-components) - small component library for internal reuse between QuestDB products
14+
* [`browser-tests`](./packages/browser-tests) - a utility based on cypress that helps to automate interactions and assert zero regressions
15+
* [`screenshot-tests`](./packages/screenshot-tests) - a utility based on puppeteer that helps to automate taking screenshots of a website and comparing them between runs

‎packages/web-console/README.md

+56-13
Original file line numberDiff line numberDiff line change
@@ -1,25 +1,68 @@
1-
# QuestDB Console
1+
# QuestDB Web Console
2+
3+
This package contains code of the GUI for interacting with QuestDB.
4+
5+
It is a web application built with TypeScript and React and managed with
6+
Yarn@3 and Webpack.
7+
8+
## Local development setup
9+
10+
### TL;DR;
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+
```
219

320
## Prerequisites
421

5-
- Node.js 16 / npm 8 (to manage your Node.js versions we recommend
6-
[nvm](https://github.com/nvm-sh/nvm) for OSX/Linux/windows WSL, and
7-
[nvm-windows](https://github.com/coreybutler/nvm-windows) for Windows)
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:
29+
```
30+
docker run -p 9000:9000 -p 9009:9009 -p 8812:8812 questdb/questdb
31+
```
32+
33+
## Start development environment
34+
35+
1. Setup dependencies with yarn:
36+
37+
```
38+
yarn
39+
```
40+
41+
2. Start development environment
42+
43+
```
44+
yarn workspace @questdb/web-console start
45+
```
846

9-
## Local development
47+
3. Open [localhost:9999](http://localhost:9999)
1048

11-
Make sure that QuestDB is running, please check the instructions [here](https://github.com/questdb/questdb/blob/master/README.md)
49+
> make sure you have a local QuestDB instance running, as mentioned in
50+
> "Prerequisites" above.
1251
13-
1. Install the dependencies with `npm install`
14-
2. Start the development web server with `npm start`
52+
4. Happy hacking!
1553

16-
The web console should now be accessible at
17-
[localhost:9999](http://localhost:9999)
54+
## Run build
1855

19-
## Building the artifacts
56+
1. Make sure dependencies are set up:
2057

21-
Run the command:
58+
```
59+
yarn
60+
```
61+
62+
2. Run `build` script:
2263

2364
```
24-
npm run build
65+
yarn workspace @questdb/web-console run build
2566
```
67+
68+
3. Build process emits static HTML, CSS and JS files in `packages/web-console/dist`

0 commit comments

Comments
 (0)
Failed to load comments.