From c59f04a01b88398d3ba6d18a04fcfd50b660d0ad Mon Sep 17 00:00:00 2001 From: Matthias Broecheler Date: Wed, 24 Jan 2024 15:28:51 -0800 Subject: [PATCH] Fix run command in README.md Signed-off-by: Matthias Broecheler --- README.md | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index 2dc0d027f..cda7ba04f 100644 --- a/README.md +++ b/README.md @@ -41,10 +41,9 @@ SensorMaxTemp := SELECT sensorid, max(temp) as maxTemp WHERE timeSec >= now() - INTERVAL 1 MINUTE GROUP BY sensorid; ``` -- Invoke `docker run --rm -v $PWD:/build datasqrl/cmd compile metrics.sqrl` to compile the SQL script into a data pipeline with the executables located in the `build/deploy` directory. -- Run the entire data pipeline in docker with the command: `(cd build/deploy; docker compose up)` +- Run `docker run -it -p 8888:8888 -p 8081:8081 -v $PWD:/build datasqrl/cmd run metrics.sqrl` to compile the SQL script and run the resulting data pipeline (use `${PWD}` in Powershell on Windows). This requires that you have Docker installed and takes a minute to start up. -Once the data pipeline is up and running, you can query the results through the default GraphQL API that DataSQRL generates. Open [http://localhost:8888/graphiql/](http://localhost:8888/graphiql/) in your browser and run GraphQL queries against the API. Once you are done, terminate the pipeline with the command: `(cd build/deploy; docker compose down -v)` +Once the data pipeline is up and running, you can query the results through the default GraphQL API that DataSQRL generates. Open [http://localhost:8888/graphiql/](http://localhost:8888/graphiql/) in your browser and run GraphQL queries against the API. Once you are done, terminate the pipeline with `CTRL-C`. For a detailed explanation of this example, take a look at the [Quickstart Tutorial](https://www.datasqrl.com/docs/getting-started/quickstart) which shows you how to customize the API, create realtime alerts, and more.