Skip to content
This repository has been archived by the owner on Jun 17, 2024. It is now read-only.

Documentation: How to get started #76

Open
paschelino opened this issue Feb 7, 2017 · 4 comments
Open

Documentation: How to get started #76

paschelino opened this issue Feb 7, 2017 · 4 comments

Comments

@paschelino
Copy link

should contain

  • sample command line code how check for eventstore service availability
  • mvn repository dependency declaration example
  • some example code to put into an integration test how to create streams and how to write and read to them
  • links to more advanced topics
@gregoryyoung
Copy link
Contributor

"sample command line code how check for eventstore service availability"

Would depend entirely on your configuration default configuration http://127.0.0.1:2113 (shows admin console) or telnet 127.0.0.1 1113. But these only work on default configuration

isn't 3 on the readme of this repository already or do you mean something else?

@paschelino
Copy link
Author

paschelino commented Feb 7, 2017

Hi Gregory,

thank you for your quick reply! Sorry for the incomprehensible description I provided to that ticket. My head was a bit tired after work. I'm thinking from the newbies perspective and wanted to suggest, it would be helpful to provide a getting started thing, which is a somehow failsafe way to set up some initial code doing basic stuff on an event stream successfully. This could include some checkpoints during the process, which show to someone using the lib, that a 'milestone' in the setup is done ;-) .

1: checkpoint: a command line call similar to a ping or a --version call as a proof, eventstore is up and running. One could also create a first event via cURL to check, but could fail due to unrelated errors having to do with the event creation itself. Then you would need to find the error of your request or your installation...
3: yes. There is sample code for that. But I think for a getting started, it is not too useful because the code snippets try to show too many things at once. An integration test would be very helpful, since connection setup code and actual writing / reading events / streams code would be separated in a natural way and the parts of such a test could focus on a very particular topic each. And last but not least this is easily executable via one's IDE and leads to a nice encouraging success at last: A green test. :-)

@paschelino
Copy link
Author

A separate sample project on github with a series of tests for the newbie to make them green one by one could also be an idea.

@michielboekhoff
Copy link
Contributor

@paschelino I agree that documentation is a weak point of the JVM client. I've recently been contributing to a new component and I've pondered writing some documentation for this project myself. What exactly are you looking for? I was thinking the API reference should really be expanded upon, too.

t3hnar added a commit that referenced this issue Feb 8, 2017
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants