{"id":1054,"date":"2021-03-14T17:11:13","date_gmt":"2021-03-14T17:11:13","guid":{"rendered":"http:\/\/www.igfasouza.com\/blog\/?p=1054"},"modified":"2021-04-19T20:54:21","modified_gmt":"2021-04-19T19:54:21","slug":"spring-boot-native-raspberry-pi-app","status":"publish","type":"post","link":"http:\/\/www.igfasouza.com\/blog\/spring-boot-native-raspberry-pi-app\/","title":{"rendered":"Spring Boot Native Raspberry PI app"},"content":{"rendered":"<p><img loading=\"lazy\" decoding=\"async\" src=\"http:\/\/www.igfasouza.com\/blog\/wp-content\/uploads\/2021\/03\/spring-native-pi.jpg\" alt=\"\" class=\"alignnone size-full wp-image-1055\" width=\"648\" height=\"426\" srcset=\"http:\/\/www.igfasouza.com\/blog\/wp-content\/uploads\/2021\/03\/spring-native-pi.jpg 648w, http:\/\/www.igfasouza.com\/blog\/wp-content\/uploads\/2021\/03\/spring-native-pi-300x197.jpg 300w, http:\/\/www.igfasouza.com\/blog\/wp-content\/uploads\/2021\/03\/spring-native-pi-624x410.jpg 624w\" sizes=\"auto, (max-width: 648px) 100vw, 648px\" \/><\/p>\n<p><b>Story Horse? All good in the hood?<\/b><br \/>\n<small style=\"color:#9f9f9f\">2021\/03\/14<\/small><\/p>\n<p>Happy PI day with another blog about Raspberry PI, It\u2019s kind of a continuation from my previous <a href=\"http:\/\/www.igfasouza.com\/blog\/energy-switch-and-smart-home-with-kafka\/\" rel=\"noopener\" target=\"_blank\">blog<\/a>.<br \/>\nControl your house lights in a smart way and check out your energy consumption.<\/p>\n<p>Spring just <a href=\"https:\/\/spring.io\/blog\/2021\/03\/11\/announcing-spring-native-beta\" rel=\"noopener\" target=\"_blank\">announced<\/a> that they\u2019ve launched the beta release of <a href=\"https:\/\/github.com\/spring-projects-experimental\/spring-native\" rel=\"noopener\" target=\"_blank\">Spring Native<\/a> and its availability on <a href=\"https:\/\/start.spring.io\/\" rel=\"noopener\" target=\"_blank\">start.spring.io<\/a>.<\/p>\n<p><iframe loading=\"lazy\" src=\"https:\/\/www.youtube.com\/embed\/96n_YpGx-JU\" allow=\"accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture\" allowfullscreen=\"\" width=\"560\" height=\"315\" frameborder=\"0\"><\/iframe><\/p>\n<p>I saw this on Friday just after I published my blog about a <a href=\"http:\/\/www.igfasouza.com\/blog\/energy-switch-and-smart-home-with-kafka\/\" rel=\"noopener\" target=\"_blank\">Spring web app to simulate a lamp switch using the TP-link smart bulb and smart plug.<\/a><\/p>\n<p>So today I decided to just get my demo and make it native. Check it out on my <a href=\"https:\/\/github.com\/igfasouza\/spring-switch\" rel=\"noopener\" target=\"_blank\">GitHub<\/a>.<\/p>\n<p>Just need to install GraalVM on Raspberry PI, and you can follow it <a href=\"https:\/\/github.com\/dongjinleekr\/graalvm-ce-deb\" rel=\"noopener\" target=\"_blank\">here<\/a>.<\/p>\n<p>Just use the GraalVm Docker <a href=\"https:\/\/www.graalvm.org\/docs\/getting-started\/container-images\/\" rel=\"noopener\" target=\"_blank\">image<\/a><\/p>\n<p><img loading=\"lazy\" decoding=\"async\" src=\"http:\/\/www.igfasouza.com\/blog\/wp-content\/uploads\/2021\/03\/spring-native.jpg\" alt=\"\" class=\"alignnone size-full wp-image-1056\" width=\"902\" height=\"458\" srcset=\"http:\/\/www.igfasouza.com\/blog\/wp-content\/uploads\/2021\/03\/spring-native.jpg 902w, http:\/\/www.igfasouza.com\/blog\/wp-content\/uploads\/2021\/03\/spring-native-300x152.jpg 300w, http:\/\/www.igfasouza.com\/blog\/wp-content\/uploads\/2021\/03\/spring-native-768x390.jpg 768w, http:\/\/www.igfasouza.com\/blog\/wp-content\/uploads\/2021\/03\/spring-native-624x317.jpg 624w\" sizes=\"auto, (max-width: 902px) 100vw, 902px\" \/><\/p>\n<p>Today is PI Day and Mother&#8217;s Day, and nothing cooler than having a blog about both at the same time.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" src=\"http:\/\/www.igfasouza.com\/blog\/wp-content\/uploads\/2021\/03\/PXL_20210314_1144183732-1024x851.jpg\" alt=\"\" class=\"alignnone size-large wp-image-1057\" width=\"625\" height=\"519\" srcset=\"http:\/\/www.igfasouza.com\/blog\/wp-content\/uploads\/2021\/03\/PXL_20210314_1144183732-1024x851.jpg 1024w, http:\/\/www.igfasouza.com\/blog\/wp-content\/uploads\/2021\/03\/PXL_20210314_1144183732-300x249.jpg 300w, http:\/\/www.igfasouza.com\/blog\/wp-content\/uploads\/2021\/03\/PXL_20210314_1144183732-768x638.jpg 768w, http:\/\/www.igfasouza.com\/blog\/wp-content\/uploads\/2021\/03\/PXL_20210314_1144183732-624x519.jpg 624w\" sizes=\"auto, (max-width: 625px) 100vw, 625px\" \/><br \/>\n<small>Raspberry PI motherboard &#8211; Happy Mother&#8217;s Day and Pi Day all.<\/small><\/p>\n<p>I want to add an honorable mention here for my friend <a href=\"https:\/\/www.linkedin.com\/in\/%F0%9F%91%A8%E2%80%8D%F0%9F%92%BB-%F0%9F%87%AE%F0%9F%87%AA-rodrigo-rodrigues-a08aab15\/\" rel=\"noopener\" target=\"_blank\">Rodrigo Rodrigues<\/a> that helped me to activate this and gave me moral support to make this blog.<\/p>\n<p>Check out his similar example <a href=\"https:\/\/github.com\/rodrigorodrigues\/spring-native-crud-mongodb\" rel=\"noopener\" target=\"_blank\">here<\/a>.<\/p>\n<h2>Links<\/h2>\n<p><a href=\"https:\/\/www.graalvm.org\/docs\/getting-started\/container-images\/\" rel=\"noopener\" target=\"_blank\">https:\/\/www.graalvm.org\/docs\/getting-started\/container-images\/<\/a><\/p>\n<p><a href=\"https:\/\/github.com\/dongjinleekr\/graalvm-ce-deb\" rel=\"noopener\" target=\"_blank\">https:\/\/github.com\/dongjinleekr\/graalvm-ce-deb<\/a><\/p>\n<p><a href=\"https:\/\/github.com\/marketplace\/actions\/setup-graalvm-ce\" rel=\"noopener\" target=\"_blank\">https:\/\/github.com\/marketplace\/actions\/setup-graalvm-ce<\/a><\/p>\n<p><a href=\"https:\/\/hub.docker.com\/_\/openjdk\" rel=\"noopener\" target=\"_blank\">https:\/\/hub.docker.com\/_\/openjdk<\/a><\/p>\n<p><a href=\"https:\/\/medium.com\/agorapulse-stories\/how-to-deploy-java-application-with-docker-and-graalvm-464629d95dbd\" rel=\"noopener\" target=\"_blank\">https:\/\/medium.com\/agorapulse-stories\/how-to-deploy-java-application-with-docker-and-graalvm-464629d95dbd<\/a><\/p>\n<p><a href=\"https:\/\/medium.com\/graalvm\/updates-on-class-initialization-in-graalvm-native-image-generation-c61faca461f7\" rel=\"noopener\" target=\"_blank\">https:\/\/medium.com\/graalvm\/updates-on-class-initialization-in-graalvm-native-image-generation-c61faca461f7<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Story Horse? All good in the hood? 2021\/03\/14 Happy PI day with another blog about Raspberry PI, It\u2019s kind of a continuation from my previous blog. Control your house lights in a smart way and check out your energy consumption.&hellip; <a href=\"http:\/\/www.igfasouza.com\/blog\/spring-boot-native-raspberry-pi-app\/\" class=\"more-link\">Continue Reading <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":1055,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-1054","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-uncategorized"],"_links":{"self":[{"href":"http:\/\/www.igfasouza.com\/blog\/wp-json\/wp\/v2\/posts\/1054","targetHints":{"allow":["GET"]}}],"collection":[{"href":"http:\/\/www.igfasouza.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/www.igfasouza.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/www.igfasouza.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/www.igfasouza.com\/blog\/wp-json\/wp\/v2\/comments?post=1054"}],"version-history":[{"count":6,"href":"http:\/\/www.igfasouza.com\/blog\/wp-json\/wp\/v2\/posts\/1054\/revisions"}],"predecessor-version":[{"id":1111,"href":"http:\/\/www.igfasouza.com\/blog\/wp-json\/wp\/v2\/posts\/1054\/revisions\/1111"}],"wp:featuredmedia":[{"embeddable":true,"href":"http:\/\/www.igfasouza.com\/blog\/wp-json\/wp\/v2\/media\/1055"}],"wp:attachment":[{"href":"http:\/\/www.igfasouza.com\/blog\/wp-json\/wp\/v2\/media?parent=1054"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/www.igfasouza.com\/blog\/wp-json\/wp\/v2\/categories?post=1054"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/www.igfasouza.com\/blog\/wp-json\/wp\/v2\/tags?post=1054"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}