@finos/legend-application-repl-deployment 12.28.0 → 12.30.0
Sign up to get free protection for your applications and to get access to all the features.
- package/README.md +13 -20
- package/dist/repl/version.json +1 -1
- package/package.json +1 -1
package/README.md
CHANGED
@@ -2,31 +2,24 @@
|
|
2
2
|
|
3
3
|
This is the `Legend REPL` web application deployment. This is used for development locally
|
4
4
|
|
5
|
-
##
|
5
|
+
## Getting Started
|
6
6
|
|
7
|
-
|
7
|
+
1. Start the REPL using [this guide](https://github.com/finos/legend-engine/blob/master/legend-engine-config/legend-engine-repl/README.md#developer-guide).
|
8
8
|
|
9
|
-
-
|
9
|
+
- Use [DataCubeClient](https://github.com/finos/legend-engine/blob/master/legend-engine-config/legend-engine-repl/legend-engine-repl-data-cube/src/main/java/org/finos/legend/engine/repl/dataCube/client/DataCubeClient.java).
|
10
|
+
- Make sure to configure the properties to have the REPL point at the DEV web app:
|
10
11
|
|
11
|
-
## Getting started
|
12
|
-
|
13
|
-
To quickly setup the backend, spin up `REPL Client` application:
|
14
|
-
|
15
|
-
- In order to start the server, please use the `Main` class `org.finos.legend.engine.repl.relational.client.RClient`
|
16
|
-
- This will open a new terminal in your IDE with REPL Client up and running. This will also print the port at which backend server for grid is running at.
|
17
|
-
- If you wish to change the port for backend server (preferably 8080 as client assumes server runs at this port) please modify port here [REPL Grid Server](https://github.com/finos/legend-engine/blob/master/legend-engine-config/legend-engine-repl/legend-engine-repl-relational/src/main/java/org/finos/legend/engine/repl/relational/httpServer/ReplGridServer.java)
|
18
|
-
|
19
|
-
Before spinning up the application make sure to run these commands on `REPL terminal` so that there is an initial query state for grid.
|
20
|
-
|
21
|
-
```bash
|
22
|
-
load <path> <connection>
|
23
|
-
#>{<db.table>}#->from(<connection>)
|
24
|
-
show
|
25
12
|
```
|
13
|
+
# [DEVELOPMENT] Specify the base URL for the development instance of the web application
|
14
|
+
# this is needed to bypass CORS
|
15
|
+
-Dlegend.repl.dataCube.devWebAppBaseUrl=http://localhost:9005
|
26
16
|
|
27
|
-
|
17
|
+
# [DEVELOPMENT] By default, the port is randomized, but for development, the port needs
|
18
|
+
# to be fixed to allow the web application to connect to the REPL
|
19
|
+
-Dlegend.repl.dataCube.devPort=9006
|
20
|
+
```
|
28
21
|
|
29
|
-
|
22
|
+
2. Start REPL web-application:
|
30
23
|
|
31
24
|
```bash
|
32
25
|
yarn install
|
@@ -34,4 +27,4 @@ Last but not least, make sure you have `Yarn` installed. Run the following comma
|
|
34
27
|
yarn dev:repl
|
35
28
|
```
|
36
29
|
|
37
|
-
|
30
|
+
Visit http://localhost:9005/repl/grid and the application should be up and running.
|
package/dist/repl/version.json
CHANGED