Skip to content

Commit

Permalink
Adding additional scripts for the tutorial
Browse files Browse the repository at this point in the history
  • Loading branch information
krotik committed Mar 5, 2019
1 parent 9ac6a5f commit 2ddce9e
Show file tree
Hide file tree
Showing 4 changed files with 24 additions and 3 deletions.
6 changes: 3 additions & 3 deletions examples/tutorial/doc/tutorial.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ https://localhost:9090/db/term.html

The generated default key and certificate for https are self-signed which should give a security warning in the browser. After accepting you should see a prompt.

![](https://github.com/krotik/eliasdb/blob/master/examples/tutorial/doc/tutorial1.png?raw=true)
![](https://github.com/krotik/eliasdb/blob/master/examples/tutorial/tutorial1.png?raw=true)

You can get an overview of all available command by typing:
```
Expand All @@ -35,7 +35,7 @@ get Line
```
The result should be a table of tube lines. Each line having a unique key and a name.

![](https://github.com/krotik/eliasdb/blob/master/examples/tutorial/doc/tutorial2.png?raw=true)
![](https://github.com/krotik/eliasdb/blob/master/examples/tutorial/tutorial2.png?raw=true)

We can easily order the table by name by writing:
```
Expand Down Expand Up @@ -75,4 +75,4 @@ find King's Cross
```
The query should return the Station King's Cross. The index can efficiently lookup words, phrases (multiple consecutive words) and attribute values. Use the index endpoint in the REST API for more specific lookups.

![](https://github.com/krotik/eliasdb/blob/master/examples/tutorial/doc/tutorial3.png?raw=true)
![](https://github.com/krotik/eliasdb/blob/master/doc/tutorial3.png?raw=true)
11 changes: 11 additions & 0 deletions examples/tutorial/start.bat
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
@echo off
cd "%~p1"

if NOT EXIST run (
mkdir run
cd run
..\..\..\eliasdb server -import ..\tutorial_data.zip
) ELSE (
cd run
..\..\..\eliasdb server
)
5 changes: 5 additions & 0 deletions examples/tutorial/start_console.bat
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
@echo off
cd "%~p1"

cd run
..\..\..\eliasdb console
5 changes: 5 additions & 0 deletions examples/tutorial/start_console.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
#!/bin/sh
cd "$(dirname "$0")"

cd run
../../../eliasdb console

0 comments on commit 2ddce9e

Please sign in to comment.