-
Notifications
You must be signed in to change notification settings - Fork 0
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
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Requested changes should also be applied to the Kotlin section whenever possible
doc/1/getting-started/java/index.md
Outdated
Connected! | ||
Successfully subscribing! | ||
New document added to yellow-taxi collection! | ||
New created document notification: [Document content as ConcurrentHashMap] |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
hm... can the snippet serialize the document content and print it so that example gives a view of the actual notification content?
doc/1/getting-started/java/index.md
Outdated
- follow our guide to learn how to perform [basic authentication](/core/2/guides/essentials/user-authentication#local-strategy) | ||
- follow our guide to learn how to [manage users and how to set up fine-grained access control](/core/2/guides/essentials/security) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Those are Kuzzle topics rather than SDK ones
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You r right, Ive copied this part from others SDK getting started, we should probably make it more accurate
Co-authored-by: Sébastien Cottinet <[email protected]>
Co-authored-by: Sébastien Cottinet <[email protected]>
Co-authored-by: Sébastien Cottinet <[email protected]>
Co-authored-by: Sébastien Cottinet <[email protected]>
Co-authored-by: Sébastien Cottinet <[email protected]>
Co-authored-by: Sébastien Cottinet <[email protected]>
Co-authored-by: Sébastien Cottinet <[email protected]>
Co-authored-by: Sébastien Cottinet <[email protected]>
Co-authored-by: Sébastien Cottinet <[email protected]>
Co-authored-by: Sébastien Cottinet <[email protected]>
Co-authored-by: Sébastien Cottinet <[email protected]>
Co-authored-by: Sébastien Cottinet <[email protected]>
Co-authored-by: Sébastien Cottinet <[email protected]>
Co-authored-by: Sébastien Cottinet <[email protected]>
Co-authored-by: Sébastien Cottinet <[email protected]>
Co-authored-by: Sébastien Cottinet <[email protected]>
Co-authored-by: Sébastien Cottinet <[email protected]>
Co-authored-by: Alexandre Bouthinon <[email protected]>
|
||
- 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/) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
- discover others [Kuzzle guides](core/2/guides/essentials/introduction/) | |
- discover other [Kuzzle guides](core/2/guides/essentials/introduction/) |
Build and run your program: | ||
|
||
```bash | ||
$ javac -classpath ./path/to/the/sdk.jar GettingStartedRealtime.kt |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
wrong compiler
As you did before, build and run your program: | ||
|
||
```bash | ||
$ javac -classpath ./path/to/the/sdk.jar GettingStartedStorage.kt |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
wrong compiler
Run the program with the following command: | ||
|
||
```bash | ||
$ javac -classpath ./path/to/the/sdk.jar GettingStartedFirstConnection.kt |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
wrong compiler
Co-authored-by: Sébastien Cottinet <[email protected]>
Co-authored-by: Sébastien Cottinet <[email protected]>
Co-authored-by: Sébastien Cottinet <[email protected]>
// Creates a WebSocket connection. | ||
// Replace "kuzzle" with | ||
// your Kuzzle host name (e.g. "localhost") | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
println("Connected!") | ||
|
||
try { | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
// Connects to the server. | ||
connect() |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
// Connects to the server. | |
connect() | |
// Connects to the server. | |
connect() |
import java.util.concurrent.ConcurrentHashMap; | ||
|
||
fun main() { | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
// Creates a WebSocket connection. | ||
// Replace "kuzzle" with | ||
// your Kuzzle hostname like "localhost" | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
// Connects to the server. | ||
connect() |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
// Connects to the server. | |
connect() | |
// Connects to the server. | |
connect() |
// Creates a WebSocket connection. | ||
// Replace "kuzzle" with | ||
// your Kuzzle hostname like "localhost" | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
// Creates a WebSocket connection. | ||
// Replace "kuzzle" with | ||
// your Kuzzle hostname like "localhost" | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
// Creates a WebSocket connection. | ||
// Replace "kuzzle" with | ||
// your Kuzzle host name (e.g. "localhost") | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Co-authored-by: Alexandre Bouthinon <[email protected]>
Co-authored-by: Alexandre Bouthinon <[email protected]>
Co-authored-by: Alexandre Bouthinon <[email protected]>
Co-authored-by: Alexandre Bouthinon <[email protected]>
Co-authored-by: Alexandre Bouthinon <[email protected]>
doc/1/getting-started/kotlin/snippets/firstconnection-kotlin.kt
Outdated
Show resolved
Hide resolved
Co-authored-by: Alexandre Bouthinon <[email protected]>
Co-authored-by: Alexandre Bouthinon <[email protected]>
## What does this PR do ? Add a "How to Migrate from SDK Java to SDK JVM" page #97 Since this doc use an example with `document:search`, kuzzleio/sdk-jvm#23 has to be merged before (the signature has been updated) ### Boyscout Typo in Getting Started
## What does this PR do ? Add a "How to Migrate from SDK Java to SDK JVM" page #97 Since this doc use an example with `document:search`, kuzzleio/sdk-jvm#23 has to be merged before (the signature has been updated) ### Boyscout Typo in Getting Started
What does this PR do ?
Add Java and Kotling Getting Started
Other changes
Fix documentation (Bulk, and SearchResult next)
Fix collection:create
Update
document:search
signatureFix token expired
Boyscout