Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add Java and Kotlin Getting started #23

Merged
merged 55 commits into from
Dec 1, 2020
Merged
Show file tree
Hide file tree
Changes from 4 commits
Commits
Show all changes
55 commits
Select commit Hold shift + click to select a range
e01f407
getting started
Yoann-Abbes Nov 12, 2020
891d3d7
fix cast
Yoann-Abbes Nov 12, 2020
cf40ae0
@kblondel requested changes
Yoann-Abbes Nov 17, 2020
51e51f5
link bintray
Yoann-Abbes Nov 17, 2020
fe1b1d5
update getting started
Yoann-Abbes Nov 17, 2020
5409318
Update doc/1/getting-started/java/index.md
Yoann-Abbes Nov 18, 2020
14ea4ba
Update doc/1/getting-started/java/index.md
Yoann-Abbes Nov 18, 2020
5132317
Update doc/1/getting-started/java/index.md
Yoann-Abbes Nov 18, 2020
ba9b572
Update doc/1/getting-started/java/index.md
Yoann-Abbes Nov 18, 2020
c4d255b
Update doc/1/getting-started/java/index.md
Yoann-Abbes Nov 18, 2020
935e839
Update doc/1/getting-started/java/index.md
Yoann-Abbes Nov 18, 2020
ed14ed2
Update doc/1/getting-started/java/index.md
Yoann-Abbes Nov 18, 2020
a53b351
Update doc/1/getting-started/java/index.md
Yoann-Abbes Nov 18, 2020
abd0aff
Update doc/1/getting-started/java/snippets/document-java.java
Yoann-Abbes Nov 18, 2020
3be54bd
Update doc/1/getting-started/java/index.md
Yoann-Abbes Nov 18, 2020
4f4ef5b
Update doc/1/getting-started/java/index.md
Yoann-Abbes Nov 18, 2020
f251ad4
Update doc/1/getting-started/java/index.md
Yoann-Abbes Nov 18, 2020
1a5629d
Update doc/1/getting-started/java/index.md
Yoann-Abbes Nov 18, 2020
9e47bd2
Update doc/1/getting-started/java/index.md
Yoann-Abbes Nov 18, 2020
d4a122e
Update doc/1/getting-started/java/index.md
Yoann-Abbes Nov 18, 2020
abd319f
Update doc/1/getting-started/java/index.md
Yoann-Abbes Nov 18, 2020
f246fcb
Update doc/1/getting-started/java/index.md
Yoann-Abbes Nov 18, 2020
fbf6b78
Update doc/1/getting-started/java/index.md
Yoann-Abbes Nov 18, 2020
b289bb2
update getting started kt
Yoann-Abbes Nov 18, 2020
b76c2e1
update snippets getting started
Yoann-Abbes Nov 18, 2020
a7687ca
Update doc/1/getting-started/java/index.md
Yoann-Abbes Nov 18, 2020
9dfacfc
update getting started
Yoann-Abbes Nov 18, 2020
b15f6b8
update document:search signature
Yoann-Abbes Nov 18, 2020
3d94b3f
typo
Yoann-Abbes Nov 18, 2020
13dea72
Update doc/1/getting-started/java/index.md
Yoann-Abbes Nov 18, 2020
94737fd
remove congrats
Yoann-Abbes Nov 18, 2020
00331d8
fix getting started gradle
Yoann-Abbes Nov 19, 2020
3cf3601
fix getting started gradle
Yoann-Abbes Nov 19, 2020
06645f8
search overload
Yoann-Abbes Nov 25, 2020
60ea453
Update doc/1/getting-started/java/snippets/document-java.java
Yoann-Abbes Nov 27, 2020
5d850f7
Update doc/1/getting-started/java/snippets/firstconnection-java.java
Yoann-Abbes Nov 27, 2020
0e4d1e1
Update doc/1/getting-started/java/snippets/realtime-java.java
Yoann-Abbes Nov 27, 2020
92c03ed
Update doc/1/getting-started/kotlin/snippets/document-kotlin.kt
Yoann-Abbes Nov 27, 2020
22f3628
Update doc/1/getting-started/kotlin/snippets/firstconnection-kotlin.kt
Yoann-Abbes Nov 27, 2020
9575ebc
Update doc/1/getting-started/kotlin/snippets/realtime-kotlin.kt
Yoann-Abbes Nov 27, 2020
2540279
fix tab
Yoann-Abbes Nov 27, 2020
ce017bd
update getting started java
Yoann-Abbes Nov 27, 2020
a5cff10
Update doc/1/getting-started/kotlin/index.md
Yoann-Abbes Nov 27, 2020
48a6996
Update doc/1/getting-started/java/index.md
Yoann-Abbes Nov 27, 2020
661d0aa
update getting started kt
Yoann-Abbes Nov 27, 2020
0a56e04
Update doc/1/getting-started/kotlin/index.md
Yoann-Abbes Nov 27, 2020
8742683
fix tokenexpired
Yoann-Abbes Nov 27, 2020
5c0d8be
Update doc/1/getting-started/kotlin/snippets/realtime-kotlin.kt
Yoann-Abbes Dec 1, 2020
d1d6642
@abouthinon requested changes
Yoann-Abbes Dec 1, 2020
e4b5475
Update doc/1/getting-started/java/snippets/firstconnection-java.java
Yoann-Abbes Dec 1, 2020
a294526
Update doc/1/getting-started/java/snippets/realtime-java.java
Yoann-Abbes Dec 1, 2020
8da633c
Update doc/1/getting-started/kotlin/snippets/document-kotlin.kt
Yoann-Abbes Dec 1, 2020
a029905
Update doc/1/getting-started/kotlin/snippets/realtime-kotlin.kt
Yoann-Abbes Dec 1, 2020
ce905f0
Update doc/1/getting-started/kotlin/snippets/document-kotlin.kt
Yoann-Abbes Dec 1, 2020
b62e09b
Update doc/1/getting-started/kotlin/snippets/firstconnection-kotlin.kt
Yoann-Abbes Dec 1, 2020
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 1 addition & 6 deletions doc/1/getting-started/java/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -100,11 +100,6 @@ You now know how to:

Now that you successfully connected to your Kuzzle Server instance, and created an index and a collection, it's time to manipulate documents.

Here is how Kuzzle structures its storage space:

- indexes contain collections
- collections contain documents

Create a `GettingStartedStorage.java` file in the playground and add this code:

<<< ./snippets/document-java.java
Expand Down Expand Up @@ -170,4 +165,4 @@ Now that you're more familiar with the JVM SDK, you can dive even deeper to lear

- discover what this SDK has to offer by browsing other sections of this documentation
- learn how to use [pagination strategies](/sdk/jvm/1/core-classes/search-result/next/#pagination-strategies) with the [document:search](/sdk/jvm/1/controllers/document/search/) API action.
- discover others [Kuzzle guides](core/2/guides/essentials/introduction/)
- discover other [Kuzzle guides](core/2/guides/essentials/introduction/)
10 changes: 5 additions & 5 deletions doc/1/getting-started/kotlin/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ This program initializes the Kuzzle Server storage by creating an index and a co
Run the program with the following command:

```bash
$ javac -classpath ./path/to/the/sdk.jar GettingStartedFirstConnection.kt
$ kotlinc -classpath ./path/to/the/sdk.jar GettingStartedFirstConnection.kt
$ java -classpath .:./path/to/the/sdk.jar GettingStartedFirstConnection
Connected!
Index nyc-open-data created!
Expand All @@ -106,13 +106,13 @@ Create a `GettingStartedStorage.kt` file in the playground and add this code:
As you did before, build and run your program:

```bash
$ javac -classpath ./path/to/the/sdk.jar GettingStartedStorage.kt
$ kotlinc -classpath ./path/to/the/sdk.jar GettingStartedStorage.kt
$ java -classpath .:./path/to/the/sdk.jar GettingStartedStorage
Connected!
New document added to the yellow-taxi collection!
```

You can perform other actions such as [delete](/sdk/jvm/1/controllers/document/delete), [replace](/sdk/jvm/1/controllers/document/replace) or [search](/sdk/jvm/1/controllers/document/search) documents. There are also other ways to interact with Kuzzle like our [Admin Console](/core/2/guides/essentials/admin-console), the [Kuzzle HTTP API](/core/2/api/essentials/connecting-to-kuzzle) or by using your [own protocol](/core/2/protocols/essentials/getting-started).
Many other actions are available to manipulate stored documents. You can check the exhaustive list in the [Document Controller documentation](https://docs.kuzzle.io/sdk/jvm/1/controllers/document).

Now you know how to:

Expand All @@ -129,7 +129,7 @@ This program subscribes to changes made to documents with a `license` field set
Build and run your program:

```bash
$ javac -classpath ./path/to/the/sdk.jar GettingStartedRealtime.kt
$ kotlinc -classpath ./path/to/the/sdk.jar GettingStartedRealtime.kt
$ java -classpath .:./path/to/the/sdk.jar GettingStartedRealtime
Connected!
Successfully subscribing!
Expand Down Expand Up @@ -164,4 +164,4 @@ Now that you're more familiar with the JVM SDK, you can dive even deeper to lear

- discover what this SDK has to offer by browsing other sections of this documentation
- learn how to use [pagination strategies](/sdk/jvm/1/core-classes/search-result/next/#pagination-strategies) with the [document:search](/sdk/jvm/1/controllers/document/search/) API action.
- discover others [Kuzzle guides](core/2/guides/essentials/introduction/)
- discover others [Kuzzle guides](core/2/guides/essentials/introduction/)
Yoann-Abbes marked this conversation as resolved.
Show resolved Hide resolved