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
* Move partiql-playground to Node.js
This is the first PR as part of a series of PR to new features in PartiQL Playground:
This PR includes the following:
- Moves the PartiQL Playground to a Node.js project. This allows
using the Node features within the project, such as having a
server side listerner instead of an arbitrary web-server.
- Removes the `ace-builds` sub-modules as an action from previous reviews.
TODO:
[x] Node.js server listener
[x] Remove `ace-builds` submodule.
[] Containerization
[] Client side URL export
[] AST Graph pan and zooming bugfix
Copy file name to clipboardExpand all lines: partiql-playground/README.md
+21-8Lines changed: 21 additions & 8 deletions
Original file line number
Diff line number
Diff line change
@@ -7,23 +7,35 @@ _Please note, at this stage the code within this package is considered experimen
7
7
## Local Usage
8
8
For local usage follow the below steps.
9
9
10
-
1. Pull down the `partiql-rust` package from GitHub:
10
+
1. Ensure `wasm-pack` is installed on your machine by running the following command; if not, install it from [here](https://rustwasm.github.io/wasm-pack/installer/):
11
+
```bash
12
+
wasm-pack --version
13
+
# Sample output
14
+
wasm-pack 0.10.2
15
+
```
16
+
2. Ensure `npm` is intalled on your machine; see [here](https://docs.npmjs.com/downloading-and-installing-node-js-and-npm) for more details:
17
+
```bash
18
+
npm --version
19
+
# Sample output
20
+
8.13.2
21
+
```
22
+
3. Pull down the `partiql-lang-rust` repository from GitHub:
4. Start a webserver from the root directory, as an example, you can use [Python's SimpleHTTPServer](https://docs.python.org/3.8/library/http.server.html#http.server.SimpleHTTPRequestHandler):
34
+
5. Start the node server from `partiql-playground` package's root directory:
23
35
```bash
24
-
python3 -m http.server
36
+
node src/server.ts
25
37
```
26
-
4. On your browser go to `http://localhost:8000/`
38
+
6. your browser go to `http://localhost:8000/`
27
39
28
40
## Development
29
41
`PartiQL Playground` uses [WebAssembly (Wasm)](https://webassembly.org/) for integrating the front-end with PartiQL Rust back-end.
@@ -43,6 +55,7 @@ _Please note, as the package is experimental at this stage, all HTML code and as
|[wasm-bindgen](https://github.com/rustwasm/wasm-bindgen)|[Apache License Version 2.0](https://github.com/rustwasm/wasm-bindgen/blob/main/LICENSE-APACHE)|
48
61
|[wasm-pack](https://github.com/rustwasm/wasm-pack)|[Apache License Version 2.0](https://github.com/rustwasm/wasm-pack/blob/master/LICENSE-APACHE)|
0 commit comments