SteemJ Dev Diary #7 (07.01.2018) - Finalize the DatabaseApi

in #utopian-io7 years ago (edited)

The last planned day of the SteemJ Dev Diary was used to add the remaining 74 objects to the DatabaseApi.

<p dir="auto"><center><br /> <img src="https://images.hive.blog/768x0/https://imgur.com/NGivnNo.png" alt="SteemJV2Logo" srcset="https://images.hive.blog/768x0/https://imgur.com/NGivnNo.png 1x, https://images.hive.blog/1536x0/https://imgur.com/NGivnNo.png 2x" /><br /> <p dir="auto"><center><br /> Latest SteemJ 0.4.x releases: <a href="https://steemit.com/utopian-io/@dez1337/steemj-v0-4-3-is-available-now-use-the-steem-api-in-your-java-project" target="_blank" rel="noreferrer noopener" title="This link will take you away from hive.blog" class="external_link">0.4.3 <a href="https://steemit.com/utopian-io/@dez1337/steemj-v0-4-2-is-available-now-use-the-steem-api-in-your-java-project" target="_blank" rel="noreferrer noopener" title="This link will take you away from hive.blog" class="external_link">v0.4.2 <a href="https://steemit.com/steemdev/@dez1337/steemj-v0-4-1-has-been-released-use-the-steem-api-in-your-java-project" target="_blank" rel="noreferrer noopener" title="This link will take you away from hive.blog" class="external_link">v0.4.2pr1 <a href="https://steemit.com/steemdev/@dez1337/steemj-v0-4-1-has-been-released-use-the-steem-api-in-your-java-project" target="_blank" rel="noreferrer noopener" title="This link will take you away from hive.blog" class="external_link">v0.4.1 <a href="https://steemit.com/steemdev/@dez1337/steemj-v0-4-0-has-been-released-integrate-steem-into-your-java-project" target="_blank" rel="noreferrer noopener" title="This link will take you away from hive.blog" class="external_link">v0.4.0<br /> <h1>SteemJ Dev Diary #7 (07.01.2018) - Finalize the DatabaseApi <p dir="auto"><br />Hello Steemians and welcome back to day #5 of the SteemJ HF 0.20 Dev Diary! <p dir="auto">This series has been introduced to collect feedback from you and to motivate myself to finalize the next SteemJ version as soon as possible. If this is the first part of this series you read, you may want to checkout <a href="https://steemit.com/utopian-io/@dez1337/steemj-dev-diary-1-01-01-2018-cryptocore-and-code-cleanups" target="_blank" rel="noreferrer noopener" title="This link will take you away from hive.blog" class="external_link">Day #1 which explains the motivation behind this diary in detail and also provides a first overview of the API changes that come with HF 0.20. <h1>Changes during day #7 <p dir="auto">We made it - 7 days fully focused on SteemJ. Thanks to everyone who showed her/his interest and for your support in general. There is still a lot to do, but I guess this diary was really needed to get a good starting point for HF 0.20. related changes. <p dir="auto">I also have to say that this series was quite exhausting, because 90% of the work had to follow three steps: <ol> <li>Check and analyze the Steem source code <li>Compare it against the current SteemJ implementation <li>Refactor, adjust and complement the existing code <p dir="auto">To give you an idea about the work done in total: <ul> <li>About ~100 files have been added <li>553 Files have been changed <li>About 18.000 lines have been added <li>And about 4.000 have been removed. <p dir="auto"><center><br /> <img src="https://images.hive.blog/768x0/https://imgur.com/jqJQoYL.png" alt="ListOfFiles" srcset="https://images.hive.blog/768x0/https://imgur.com/jqJQoYL.png 1x, https://images.hive.blog/1536x0/https://imgur.com/jqJQoYL.png 2x" /><br /> <p dir="auto">The work today was focused on the DatabaseApi again. As promised I've added all remaining objects and methods so that the 'DatabaseApi' is more or less ready to be tested and documented. The Screenshot below shows all methods that will be available. <p dir="auto"><center><br /> <img src="https://images.hive.blog/768x0/https://imgur.com/uhlaCxh.png" alt="ListOfDatabaseApi" srcset="https://images.hive.blog/768x0/https://imgur.com/uhlaCxh.png 1x, https://images.hive.blog/1536x0/https://imgur.com/uhlaCxh.png 2x" /><br /> <p dir="auto">Full list of commits: <ul> <li><a href="https://github.com/marvin-we/steem-java-api-wrapper/commit/0a35550078cc8aa6f504e671329baea80a8728f9" target="_blank" rel="noreferrer noopener" title="This link will take you away from hive.blog" class="external_link">0a3555 <p dir="auto"><em>(A prove that the commits have been made by me can <a href="https://steemit.com/utopian-io/@dez1337/steemj-image-upload-1-0-0-has-been-released-upload-images-to-steemitimages-com-out-of-your-java-application#@dez1337/re-codingdefined-re-dez1337-steemj-image-upload-1-0-0-has-been-released-upload-images-to-steemitimages-com-out-of-your-java-application-20171217t115152531z" target="_blank" rel="noreferrer noopener" title="This link will take you away from hive.blog" class="external_link">be found here) <p dir="auto">A list of all commits made after the last release can be found here: <a href="https://github.com/marvin-we/steem-java-api-wrapper/compare/v0.4.3...master" target="_blank" rel="noreferrer noopener" title="This link will take you away from hive.blog" class="external_link">https://github.com/marvin-we/steem-java-api-wrapper/compare/v0.4.3...master <h1>General information <h2>What is SteemJ? <p dir="auto">SteemJ is a project that allows you to communicate with a Steem node using Java. So far, the project supports most of the API calls and is also able to broadcast most of the common operation types. Further information can be found on <a href="https://github.com/marvin-we/steem-java-api-wrapper" target="_blank" rel="noreferrer noopener" title="This link will take you away from hive.blog" class="external_link">GitHub. <blockquote> <p dir="auto"><span><a href="https://github.com/marvin-we/steem-java-api-wrapper" target="_blank" rel="noreferrer noopener" title="This link will take you away from hive.blog" class="external_link">https://github.com/marvin-we/steem-java-api-wrapper <h2>Quick Start Guide <h3>Add SteemJ to your project <p dir="auto">SteemJ binaries are pushed into the maven central repository and can be integrated with a bunch of build management tools like Maven. The <a href="https://github.com/marvin-we/steem-java-api-wrapper/wiki/How-to-add-SteemJ-to-your-project" target="_blank" rel="noreferrer noopener" title="This link will take you away from hive.blog" class="external_link">Wiki provides a lot of examples for the most common build tools. If you do not use a build management tool you can download the binaries as described <a href="https://github.com/marvin-we/steem-java-api-wrapper/wiki/How-to-add-SteemJ-to-your-project#download" target="_blank" rel="noreferrer noopener" title="This link will take you away from hive.blog" class="external_link">here. <p dir="auto">To add this release to your project paste the following snippet into your 'pom.xml' <pre><code><dependency> <groupId>eu.bittrade.libs</groupId> <artifactId>steemj-core</artifactId> <version>0.4.3</version> </dependency> <h3>Start posting <pre><code>SteemJConfig myConfig = SteemJConfig.getInstance(); myConfig.setDefaultAccount(new AccountName("YOUR-ACCOUNT")); List<ImmutablePair<PrivateKeyType, String>> privateKeys = new ArrayList<>(); privateKeys.add(new ImmutablePair<>(PrivateKeyType.POSTING, "YOUR-PRIVATE-POSTING-KEY")); myConfig.getPrivateKeyStorage().addAccount(myConfig.getDefaultAccount(), privateKeys); steemJ.createComment(new AccountName("steemj"), new Permlink("testofsteemj040"), "Example comment without no link but with a @user .", new String[] { "test" }); <h3>Further information <p dir="auto">The <a href="https://github.com/marvin-we/steem-java-api-wrapper/tree/master/sample" target="_blank" rel="noreferrer noopener" title="This link will take you away from hive.blog" class="external_link">sample module of the SteemJ project provides showcases for the most common acitivies and operations users want to perform. <p dir="auto">Beside that you can find a lot of snippets and examples in the different <a href="https://github.com/marvin-we/steem-java-api-wrapper/wiki" target="_blank" rel="noreferrer noopener" title="This link will take you away from hive.blog" class="external_link">Wiki sections. <h2>Contribute <p dir="auto">The project became quite big and there is still a lot to do. If you want to support the project simply clone the git repository and submit a pull request. I would really appreciate it =). <blockquote> <p dir="auto"><span>git clone <a href="https://github.com/marvin-we/steem-java-api-wrapper.git" target="_blank" rel="noreferrer noopener" title="This link will take you away from hive.blog" class="external_link">https://github.com/marvin-we/steem-java-api-wrapper.git <h2>Get in touch! <p dir="auto">Most of my projects are pretty time consuming and I always try to provide some useful stuff to the community. What keeps me going for that is your feedback and your support. For that reason I would love to get some Feedback from you <3. Just contact me here on <a href="https://steemit.com/@dez1337" target="_blank" rel="noreferrer noopener" title="This link will take you away from hive.blog" class="external_link">Steemit or ping me on <a href="https://github.com/marvin-we/steem-java-api-wrapper" target="_blank" rel="noreferrer noopener" title="This link will take you away from hive.blog" class="external_link">GitHub. <p dir="auto"><br /><hr /><em>Posted on <a href="https://utopian.io/utopian-io/@dez1337/steemj-dev-diary-7-07-01-2018-finalize-the-databaseapi" target="_blank" rel="noreferrer noopener" title="This link will take you away from hive.blog" class="external_link">Utopian.io - Rewarding Open Source Contributors<hr /><p>
Sort:  

Thank you for the contribution. It has been approved.

A damn shame that this brings your series to an end. Your work was interesting to follow and set an example for the quantity and quality of contributions we like to see.

Have you given much thought to future development series?

You can contact us on Discord.
[utopian-moderator]

Thank you for the quick review @dutch =)

Have you given much thought to future development series?

There is still a lot of work to do to be ready for HF 0.20 - I may start the next one next week, but right now I need to do a break or my girlfriend will kill me :D

Hi, I checked the project in github and tried to join the discord server but the invitation link's expired. Can you create a new invite that's set to never expires? thanks.

Hay @eastmael ,

thank you for the hint - Here is a new invite: https://discord.gg/9jZQHv

I also updated the readme =)

Best regards!

Thanks. It's in SteemDev (^ ^). Thought it was a different server. XD

Haha, no - I asked netuoso to create a Java channel there and now I am using that one :)

Cool. Will often that channel.

I liked your blog

Hey @dez1337 I am @utopian-io. I have just upvoted you!

Achievements

  • Seems like you contribute quite often. AMAZING!

Community-Driven Witness!

I am the first and only Steem Community-Driven Witness. Participate on Discord. Lets GROW TOGETHER!

mooncryption-utopian-witness-gif

Up-vote this comment to grow my power and help Open Source contributions like this one. Want to chat? Join me on Discord https://discord.gg/Pc8HG9x

first post I created using SteemJ on Android.
mixion3.pngHey @dez1337 Check out this

Finally, I can see someone use Eclipse in prod, that's great :)