<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0" xmlns:cc="http://cyber.law.harvard.edu/rss/creativeCommonsRssModule.html">
    <channel>
        <title><![CDATA[Stories by Richy Great on Medium]]></title>
        <description><![CDATA[Stories by Richy Great on Medium]]></description>
        <link>https://medium.com/@richygreat?source=rss-6112396584e------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*qCZsAc_pTodY9d5RVsmwIQ.jpeg</url>
            <title>Stories by Richy Great on Medium</title>
            <link>https://medium.com/@richygreat?source=rss-6112396584e------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Thu, 19 Nov 2026 02:49:32 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@richygreat/feed" rel="self" type="application/rss+xml"/>
        <webMaster><![CDATA[yourfriends@medium.com]]></webMaster>
        <atom:link href="http://medium.superfeedr.com/" rel="hub"/>
        <item>
            <title><![CDATA[Why Humans Created Gods: A Journey into the Mind of Our Species]]></title>
            <link>https://richygreat.medium.com/why-humans-created-gods-a-journey-into-the-mind-of-our-species-81a6b5a89025?source=rss-6112396584e------2</link>
            <guid isPermaLink="false">https://medium.com/p/81a6b5a89025</guid>
            <category><![CDATA[dogs]]></category>
            <category><![CDATA[religion]]></category>
            <dc:creator><![CDATA[Richy Great]]></dc:creator>
            <pubDate>Wed, 20 Nov 2024 22:10:50 GMT</pubDate>
            <atom:updated>2024-11-20T22:10:50.920Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*1F7hL7myUOzpyxkbTavolw@2x.jpeg" /><figcaption>Photo by <a href="http://www.calvincraig.com/">Calvin Craig</a> on <a href="https://unsplash.com/?utm_source=medium&amp;utm_medium=referral">Unsplash</a></figcaption></figure><p>Humans are unique. Unlike any other species, we look at the world around us and ask, “Why?” Why does the sun rise? Why does it rain? Why do we die? And for thousands of years, the answer has often been: “The gods did it.”</p><p>While no other animal creates gods or builds temples, humans have developed intricate belief systems tied to the divine. Why did we feel the need to believe in gods? Let’s explore three key reasons, with simple examples to make sense of this fascinating journey.</p><h3>The Survival Instinct: Finding Patterns in Chaos</h3><p>Imagine you’re an early human living in the wilderness. One night, you see lightning flash across the sky, followed by the deafening roar of thunder. You have no science to explain it. What do you do? You assume there’s a powerful being up there — perhaps angry with you.</p><p>Humans evolved to recognize patterns. This ability helped us survive. For instance:</p><p>If you hear rustling in the bushes, it’s safer to assume a predator is hiding than to dismiss it as the wind.</p><p>If the rains stop for months, you might think you’ve upset a god, prompting rituals to bring the rain back.</p><p>Our brains are wired to find meaning in randomness. When we couldn’t explain natural phenomena, we attributed them to gods or spirits. This wasn’t just curiosity — it was a survival strategy.</p><h3>Fear of the Unknown: Finding Comfort in the Divine</h3><p>Unlike animals, humans are acutely aware of mortality. We know we will die, and that realization can be terrifying. This fear of the unknown drove early humans to seek comfort in belief.</p><p>Imagine losing a loved one. Without religion, the finality of death can feel unbearable. But if you believe in an afterlife or a loving god watching over them, it becomes easier to cope. For instance:</p><p>When faced with a natural disaster like an earthquake, early humans believed gods were punishing or testing them. This gave them a sense of purpose in chaos, rather than feeling powerless.</p><p>Religion provided reassurance: “This isn’t the end,” or “There’s a higher plan.” It softened the harshness of reality.</p><h3>Strength in Numbers: Religion as a Social Glue</h3><p>Picture a group of 100 people trying to survive together. They come from different families, speak slightly different dialects, and often have disputes. What keeps them united? A shared belief in something bigger than themselves.</p><p>Religions introduced:</p><p>Shared rituals: For example, gathering to sacrifice food to a rain god ensured cooperation during tough times.</p><p>Moral codes: Beliefs like “the gods will punish thieves” encouraged honesty even when no one was watching.</p><p>Even today, shared beliefs unite communities. A small village celebrating a harvest festival or worshipping a river as sacred is an example of how religion helped people work together and trust one another.</p><h3>The Legacy of Belief</h3><p>Even as science explains the mysteries of the universe, the human need for purpose and connection remains. Religion has shaped history, morality, and culture in profound ways. Whether or not gods exist, the belief in them has played a vital role in making us who we are today.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=81a6b5a89025" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[How AI Nearly Doomed My Startup?]]></title>
            <link>https://richygreat.medium.com/how-ai-nearly-doomed-my-startup-c09311b5974b?source=rss-6112396584e------2</link>
            <guid isPermaLink="false">https://medium.com/p/c09311b5974b</guid>
            <category><![CDATA[software-development]]></category>
            <category><![CDATA[startup]]></category>
            <category><![CDATA[ai]]></category>
            <dc:creator><![CDATA[Richy Great]]></dc:creator>
            <pubDate>Wed, 13 Nov 2024 10:32:55 GMT</pubDate>
            <atom:updated>2024-11-13T10:46:07.358Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*8jn1figLnXYQpe87" /><figcaption>Photo by <a href="https://unsplash.com/@theblowup?utm_source=medium&amp;utm_medium=referral">the blowup</a> on <a href="https://unsplash.com/?utm_source=medium&amp;utm_medium=referral">Unsplash</a></figcaption></figure><p>In 2023, e-Mobility was the talk of the town — until AI stole the spotlight. As Head of Software Development at a Berlin-based e-Mobility scaleup, I was riding the wave of innovation fueled by rental scooters, electric cars, charging points, and government subsidies. After resigning, I developed a comprehensive software solution tailored for the e-Mobility sector — managing everything from supply chains and production to charge point activation and asset management for scooters and more.</p><p>My plan was straightforward: register my business, reach out to prospects, and, once the momentum built, approach investors if scaling required external funds. Everything seemed aligned — until <em>he</em> entered the party and turned everything upside down: AI.</p><p>Suddenly, the doors to e-Mobility companies were slammed shut. I could smell the smoke and see the raging fire through the keyholes. Investments for e-Mobility began to dry up overnight. The world seemed to lose interest in saving the planet, in harnessing renewable energy, and in giving proven technology the respect and chance it deserved.</p><p>Instead, all the attention shifted to AI. AI that could devour megawatts of energy just to tell you, “This is an image of a cute cat.” Meanwhile, e-Mobility — the very technology that could return surplus energy to the grid when it was needed — was left in the cold.</p><p>I couldn’t understand it. How could anyone choose a path so counterproductive? Then, one evening, as I ordered junk food instead of a healthy meal, it hit me. <em>Humans are born that way.</em></p><p>This was the first mistake I made: underestimating how the world often chooses novelty over necessity, convenience over sustainability, and instant gratification over long-term impact.</p><h4>My first pivot — Failed</h4><p>Startups were springing up across the globe, proudly calling themselves “AI startups.” At first glance, this seemed like an opportunity waiting to be tapped. I thought, <em>If these companies succeed, they’ll eventually grow into scaleups.</em> And when they do, they’ll need solutions to avoid getting stuck in the dreaded <em>Excel hell</em>.</p><p>So, I pivoted. I shifted my focus to HR management and financial management solutions, aiming to help these startups hire faster using AI, enforce financial discipline, and avoid wasting precious resources while navigating their early stages.</p><p>Then came the realization: most of these startups were tiny — teams of fewer than five people. Their primary expenses? API charges from OpenAI or Amazon Bedrock. They weren’t building anything groundbreaking; most were simply developing applications that called APIs under the hood.</p><p>And then came the wrecking ball. After every release by ChatGPT or similar large language model giants, 1,000 startups would vanish overnight. Wiped out of existence because the new updates included features they were trying to build.</p><p>Failure, again. It felt like the end of <em>Avengers: Infinity War</em>. I was Thor, kneeling in defeat, staring into the void, asking, <em>“What did you do? What did you do?”</em></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*VP6Iunc0MQPEHg-I" /><figcaption>Photo by <a href="https://unsplash.com/@wacalke?utm_source=medium&amp;utm_medium=referral">Mateusz Wacławek</a> on <a href="https://unsplash.com/?utm_source=medium&amp;utm_medium=referral">Unsplash</a></figcaption></figure><h4>Timing is everything</h4><p>Why not sell this to the existing crowd of businesses? That seemed like the logical next step. So, I began prospecting companies across Europe, targeting those that could benefit from the modules I had to offer.</p><p>But then came the economic storm, triggering a dreadful series of unfortunate events. Companies in Germany and the surrounding regions began filing for bankruptcy at an alarming rate. The chaos was palpable — businesses scrambling, making desperate moves to stay afloat.</p><p>And there I was, asking myself: <em>Who do you sell to when everyone is running around like headless chickens?</em></p><h4>How AI Inspired Our Solution</h4><p>After enduring a series of failures, I decided it was time for a change — starting with a haircut. Little did I know, that haircut would spark a revelation.</p><p>At the salon, I struck up a conversation with a retail shop owner who mentioned wanting an online store. Naturally, I asked, <em>“Why not just use Shopify or WooCommerce?”</em> His response was eye-opening. He shared several challenges he faced with these platforms:</p><ul><li><strong>Rigid onboarding for common people:</strong> “Text boxes and forms everywhere, with multi-step processes — it’s overwhelming and feels designed for tech-savvy users, not us.”</li><li><strong>Managing listings was a time drain:</strong> “I have to fill in descriptions and endless product attributes — it’s tedious and steals time I could spend running my shop.”</li><li><strong>Profit-draining commission fees:</strong> “These platforms eat into our margins with transaction commissions, leaving us with less profit to grow.”</li><li><strong>Outdated technology:</strong> “Some legacy providers don’t even use modern tech like cloud or AI, making their solutions clunky and impractical.”</li></ul><p>A few days later, I met a restaurant owner friend who shared similar frustrations. He told me about a food delivery app charging <strong>15% commission on deliveries — even when the restaurant itself handled the delivery</strong>. To make matters worse, onboarding with the app had taken several weeks to complete.</p><p>These conversations were an epiphany. The challenges these small business owners faced were glaring and universal. What they needed was a solution tailored to their realities, not the rigid molds of existing platforms. A solution that embraced modern technology — AI, automation, and user-first design — to make their lives easier.</p><h4>Enter vinr AI: Revolutionizing Business Software</h4><p>And then it hit me. Why not flip the script? Instead of businesses adapting to rigid, outdated platforms, what if software adapted to businesses? Enter <a href="https://www.vinr.ai/">v<strong>inr AI</strong></a>, the game-changer. Built to empower common people to create software, not through forms and complex configurations, but through simple conversations.</p><p>With vinr AI, your business needs are no longer constrained by draining manual processes. Need an online store? Say it. Want to deliver food yourself and make more profit? Just ask. It’s software creation reimagined — automated, AI-driven, and tailored to your unique vision.</p><p>No commission fees draining your profits. No weeks-long onboarding marathons. Just instant, intuitive solutions that grow with you.</p><p><strong><em>vinr AI isn’t just software; it’s a movement to put the power back in the hands of people — just like the PC revolution</em>, when computers moved from elite labs into the homes of everyday users, sparking creativity and innovation on an unprecedented scale.</strong></p><blockquote>This is my story of challenges, how I overcame them, and turned AI — from a disruptor into a driving force for my startup’s success.</blockquote><p>Follow me for more stories about software, startups, and life. Share your failure stories in the comments to inspire others to take the leap or learn from them!</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=c09311b5974b" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Our Java to Golang journey]]></title>
            <link>https://richygreat.medium.com/our-java-to-golang-journey-d802ab7f09fe?source=rss-6112396584e------2</link>
            <guid isPermaLink="false">https://medium.com/p/d802ab7f09fe</guid>
            <category><![CDATA[programming]]></category>
            <category><![CDATA[java]]></category>
            <category><![CDATA[software-development]]></category>
            <category><![CDATA[microservices]]></category>
            <category><![CDATA[go]]></category>
            <dc:creator><![CDATA[Richy Great]]></dc:creator>
            <pubDate>Wed, 21 Feb 2024 13:37:39 GMT</pubDate>
            <atom:updated>2024-02-21T13:37:39.034Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/724/1*VjdOXAwJZ4uu7fez6K78Cw.png" /></figure><h4>Java: We really had a dream run, old buddy</h4><p>Java-based microservices, particularly those utilizing Spring Boot, have long been celebrated for their robust features and extensive community support. Spring Boot’s convention-over-configuration approach simplifies the deployment and development of microservices, offering a plethora of out-of-the-box features like auto-configuration, standalone capability, and easy dependency management that make it a go-to choice for many developers. The ecosystem provides a mature, well-documented pathway for building resilient and scalable services. However, despite these substantial benefits, some pain points persist, such as longer startup times, memory consumption, and the complexity that comes with managing a JVM-based application, which can hinder performance and cost efficiency in cloud environments.</p><p>In a final effort to maintain our Java ecosystem, we experimented with Quarkus, hoping its promise of optimized runtime and reduced memory footprint would address our concerns. Quarkus, with its ability to compile applications into native executables, seemed like a beacon of hope. However, the reality was a tangle of complexities. The process to make our application natively compile was fraught with numerous adjustments and workarounds. Even more frustrating was the fragile nature of the native build; a single third-party library, not fully compatible with Quarkus’s native image, could dismantle the entire setup, forcing us back to running it as a standard JDK application. This precarious balance between performance gains and operational stability highlighted the need for a more streamlined, less constraining solution.</p><h4>Our requirements: We need a hero</h4><p>We required a solution capable of swiftly building native images, encompassing all necessary microservice components within the SDK itself. It needed to boast impressively quick start times, be easily packaged into a Docker image derived from scratch, and maintain a lightweight footprint, with both container image size and RAM usage under 100 MB.</p><h4>Golang: Streamlining Microservices for Efficiency and Reliability</h4><p>Enter Golang, a language designed with modern computing challenges in mind. Unlike the complexities and overhead associated with Java and the precarious nature of native compilations in Quarkus, Golang offers a straightforward, efficient approach to building microservices. Its compilation to native binaries eliminates the need for a JVM, drastically reducing memory footprint and startup times. With its strong concurrency support and simple, clean syntax, Golang simplifies the development process and enhances performance. Furthermore, its robust standard library and minimalistic nature mean fewer dependencies and a lower chance of compatibility issues. Golang not only addresses the pain points mentioned in the previous paragraphs but also propels applications into a realm of greater efficiency and reliability.</p><h4>How we planned the migration</h4><p>Initially, we dissected our business into various subdomains following Domain-Driven Design (DDD) principles, aiming to assign a dedicated microservice to each. Specifically, we focused on creating distinct microservices for HR management, Financial management, and Asset management. Next, we identified the need for shared kernel microservices to manage domain entities utilized by multiple subdomains. Collaboratively, we delineated these domain entities among the microservices using a whiteboard, ensuring a clear and logical distribution.</p><p>To visualize and better organize our architecture, we crafted a dependency graph diagram. This diagram stratified the microservices into levels based on their interdependencies, with shared kernels forming the foundational layer and the more isolated, subdomain-specific microservices occupying the higher tiers.</p><p>The final step in our preparatory phase involved compiling a comprehensive list of use cases for each microservice. We meticulously mapped these against the test cases and existing use cases in our legacy backend, ensuring a thorough and seamless transition to our new, more efficient microservice architecture.</p><h4>How we executed it</h4><p>We opted for a monorepo approach, organizing all our microservices as separate folders under a single repository named ‘ ems-backend.’ Furthermore, we crafted and open-sourced a simplistic framework-style package. This package facilitates the implementation of Golang microservices, complete with an HTTP server and Mongo database, while adhering to the principles of clean architecture. Utilizing our framework, the primary task is to develop use cases as functions for commands and queries within your system. We did, however, write custom handlers for specific HTTP tasks like file uploads. In our setup, use cases are the core aspect of the backend, orchestrating multiple domain entities to address user needs effectively.</p><p>Building upon our success, we’ve also developed an exceptionally fast API gateway using Go. This gateway performs edge authentication adhering to the OWASP microservices security standards. Each microservice is equipped with its own middleware — a straightforward function that verifies the incoming request URL against the ROLES embedded in the Passport token. This ensures a secure, efficient interaction between services.</p><h4>Our achievements after the move</h4><p>We revised our Kubernetes manifests to deploy our applications, reducing the RAM limits from 500 MB to a mere 50 MB. The transformation was remarkable: our 32 GB backend now operates smoothly on an 8 GB cluster, utilizing just 2 GB of RAM. That night, we celebrated our success with an abundance of pizza. If you’re currently managing JDK applications with a RAM limit of 2 GB or more, our story might shine a beacon of hope your way. Together, we can achieve similar efficiency. Let’s embark on this journey — <a href="https://calendly.com/richy-vinr/vinr-products-services">contact us</a></p><p>We are actively developing software in the space of business solutions, hence you will be surprised to see the speed of our innovation and execution. <a href="https://www.linkedin.com/company/vinr-eu/">Follow us on LinkedIn</a> for updates.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=d802ab7f09fe" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Revolutionizing Financial Management for Modern Businesses]]></title>
            <link>https://richygreat.medium.com/revolutionizing-financial-management-for-modern-businesses-c727b2db5dce?source=rss-6112396584e------2</link>
            <guid isPermaLink="false">https://medium.com/p/c727b2db5dce</guid>
            <category><![CDATA[budget]]></category>
            <category><![CDATA[finance]]></category>
            <category><![CDATA[cfo]]></category>
            <category><![CDATA[startup]]></category>
            <category><![CDATA[accounting]]></category>
            <dc:creator><![CDATA[Richy Great]]></dc:creator>
            <pubDate>Wed, 21 Feb 2024 13:19:33 GMT</pubDate>
            <atom:updated>2024-02-21T13:19:33.922Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*wTq7QUSG7BJR2QBD" /><figcaption>Photo by <a href="https://unsplash.com/@towfiqu999999?utm_source=medium&amp;utm_medium=referral">Towfiqu barbhuiya</a> on <a href="https://unsplash.com/?utm_source=medium&amp;utm_medium=referral">Unsplash</a></figcaption></figure><p>In the competitive landscape of financial management software, our Financial Management module introduces a transformative approach to business expense management and budgeting. Unlike traditional tools, our solution offers unparalleled depth, precision, and usability. Here’s how we stand out from competitors like QuickBooks, Xero, and FreshBooks.</p><h4>Key Features Highlight:</h4><ul><li>Dashboard Stats and Charts: Gain real-time insights with customizable dashboards, displaying vital financial metrics and trends to inform decision-making.</li><li>Financial Management Setup: Tailor the system to your business needs, setting up comprehensive financial tracking and management processes from the get-go.</li><li>Forecasting: Leverage sophisticated tools to forecast expenses and revenue, enabling accurate budget planning and financial strategy formulation.</li><li>Profit and Loss Statement: Automatically generate detailed profit and loss statements, offering a clear view of financial health.</li><li>Supplier Invoice Processing: Streamline your payable processes with efficient supplier invoice management, ensuring timely payments and financial accuracy.</li><li>Variance Analysis: Implement variance analysis to compare expected and actual financial performance, identifying opportunities for financial optimization.</li></ul><h4>Unique Features That Set Us Apart:</h4><ul><li>Advanced Business Expense Management: Our module provides detailed tracking and analytics, surpassing the basic functionalities found in QuickBooks.</li><li>Sophisticated Budgeting Tools: Unlike Xero, which offers general budgeting features, our module allows for multi-dimensional budgeting, catering to complex financial planning needs.</li><li>Accurate Financial Forecasting: We offer more precise forecasting capabilities than FreshBooks, enabling businesses to make data-driven decisions with confidence.</li><li>Comprehensive Financial Oversight: From dashboard stats and charts to profit and loss statements and variance analysis, our module covers all bases in financial tracking and analysis.</li></ul><h4>Tailored for Your Business Needs:</h4><p>Our Financial Management module is designed not just to manage finances but to empower strategic decision-making. It’s built for businesses seeking a competitive edge through superior financial insights and management capabilities.</p><p><a href="https://www.vinr.tech/">Try vinr for FREE</a></p><p><a href="https://www.vinr.tech/">vinr Business solutions | vinr</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=c727b2db5dce" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Elevating HR Management: A Look at vinr vs. Competitor Solutions]]></title>
            <link>https://richygreat.medium.com/elevating-hr-management-a-look-at-vinr-vs-competitor-solutions-0969529c5314?source=rss-6112396584e------2</link>
            <guid isPermaLink="false">https://medium.com/p/0969529c5314</guid>
            <category><![CDATA[hr]]></category>
            <category><![CDATA[applicant-tracking-system]]></category>
            <category><![CDATA[startup]]></category>
            <category><![CDATA[hr-software]]></category>
            <category><![CDATA[hrtech]]></category>
            <dc:creator><![CDATA[Richy Great]]></dc:creator>
            <pubDate>Wed, 21 Feb 2024 13:12:56 GMT</pubDate>
            <atom:updated>2024-02-21T13:12:56.407Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*PRnB6JMUBbJr0eHH" /><figcaption>Photo by <a href="https://unsplash.com/@mimithian?utm_source=medium&amp;utm_medium=referral">Mimi Thian</a> on <a href="https://unsplash.com/?utm_source=medium&amp;utm_medium=referral">Unsplash</a></figcaption></figure><p>Efficient human resource management is pivotal in today’s business landscape. vinr emerges as a cutting-edge HR management system, streamlining HR operations with unmatched efficiency. We compare vinr’s features with those of leading competitors like BambooHR and Zoho People, highlighting vinr’s unique industry advantages.</p><h4>Comprehensive Features of vinr</h4><p><em>Employee Onboarding and Management</em>: vinr revolutionizes onboarding, allowing easy addition and management of team members, including working hours updates.</p><p><em>Time Off Management</em>: vinr automates time off requests and policy management with customizable policies and streamlined approval processes.</p><p><em>Recruitment Process Enhancement</em>: vinr simplifies job postings and application reviews, ensuring smooth transitions to the interview stage.</p><h4>Distinguishing vinr from Competitors</h4><p>While BambooHR and Zoho People offer robust HR solutions, vinr stands out in key areas:</p><ul><li>User Interface: vinr’s intuitive interface simplifies task management, unlike the complex interfaces of some competitors.</li><li>Customization: vinr’s extensive customization options for policies and working hours cater to diverse business needs.</li><li>Competitor Products: BambooHR caters to small to medium-sized businesses with centralized employee data and performance management. Zoho People is scalable with an extensive suite of HR tools. However, vinr’s adaptability and ease of use provide a competitive edge.</li></ul><h4>Conclusion</h4><p>vinr distinguishes itself as a comprehensive, user-friendly HR management system, offering significant advantages over competitors like BambooHR and Zoho People. Its focus on customization, ease of use, and broad feature set make vinr the ideal choice for businesses looking to enhance their HR processes.</p><p><a href="https://www.vinr.tech/">Try vinr for FREE</a>.</p><p><a href="https://www.vinr.tech/">vinr Business solutions | vinr</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=0969529c5314" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Quarkus, the Cloud Native Java stack]]></title>
            <link>https://richygreat.medium.com/quarkus-the-cloud-native-java-stack-ec62d4be13c3?source=rss-6112396584e------2</link>
            <guid isPermaLink="false">https://medium.com/p/ec62d4be13c3</guid>
            <category><![CDATA[programming]]></category>
            <category><![CDATA[cloud-computing]]></category>
            <category><![CDATA[java]]></category>
            <category><![CDATA[software-development]]></category>
            <category><![CDATA[quarkus]]></category>
            <dc:creator><![CDATA[Richy Great]]></dc:creator>
            <pubDate>Tue, 27 Apr 2021 19:25:19 GMT</pubDate>
            <atom:updated>2021-04-27T19:25:19.235Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*NvDNUh89InPXcm9N" /><figcaption>Photo by <a href="https://unsplash.com/@zoltantasi?utm_source=medium&amp;utm_medium=referral">Zoltan Tasi</a> on <a href="https://unsplash.com/?utm_source=medium&amp;utm_medium=referral">Unsplash</a></figcaption></figure><h4>Introduction to Quarkus — Supersonic Subatomic Java</h4><p>This blog introduces Quarkus, a cloud-native Java stack to the Java fanatics. First, we will discuss all the pitfalls of the existing Java stacks. Then we will arrive at a decision with strong points to adapt Quarkus. And finally, evaluate all the features that Quarkus provides.</p><h4>Java, the duke who lived</h4><p>Java has been a legend when it comes to portability, extendability, maintainability, support and a rich set of libraries. When the product team expects an MVP in the next 2 months, you simply can not scrabble low-level code for accessing database records. And it is not considered DONE until you add those unit tests, integration tests, CI-CD pipelines, monitoring and tracing. For all the above-mentioned necessities Java has marvellous solutions which pretty much makes it the enterprise programming language of the world.</p><p>But the supremacy of Java has been questioned when the software industry started its long migration journey to the Cloud. Java developers first met with the shock of not deploying their fat War files to the Application servers. But Spring came to the rescue with embedded application servers. But still, many enterprises did not warm to the idea of running their application on someone else’s computer (The so-called Cloud).</p><p>So these companies owned huge servers with humongous RAM memory allowing Java developers to abuse it with outrageous Heap sizes. When the engineers of these companies heard the word ‘Microservices’ they started splitting one huge application into 100s of huge applications.</p><h4>1GB Microservices</h4><blockquote>“If product-microservice is just handling the Create, Read, Update and Delete of one table then why do you need 1GB of RAM to run it?” Questioned the CTOs.</blockquote><p>Java dudes were caught red-handed with 100GB RAM wasted on a portal that did not even have 100 concurrent users.</p><p>Each of these microservices took few seconds to restart and most of them were based on Spring Boot and Spring Cloud frameworks. Every developer added his/her favourite starter to each of these applications without even thinking if it is really needed. This resulted in Huge memory requirements and the Jar was singing when it was packaged (You guessed it right because it was a fat Jar).</p><h4>The problem</h4><ol><li>Our applications are huge eating up large RAM space loading lots of classes.</li><li>Our frameworks are based on Reflection.</li><li>Our server startup time is extremely slow in an age when availability is a default measure of backend. Other languages are racing ahead of Java.</li><li>We don’t need the portability feature anymore. We are actually shipping the machine where the code actually works (remember the Docker meme?).</li><li>Software should no longer be a valve radio warming up to perform better. It should be fast right from the first request.</li></ol><p>All these problems are inherent in the current Hotspot JVM (Just In Time compilation) and Spring stack (Reflection based) is no longer an option if we want to pound our chest.</p><h4>Enter Quarkus</h4><p>To remediate all the above-mentioned problems we need a Java stack that,</p><ol><li>Discards unnecessary classes during compile time (Ahead Of Time compilation).</li><li>Avoid using reflection as much as possible.</li><li>Starts faster as a native application with startup times in milliseconds.</li><li>Packaged as a native application without the need to install JVM in the final Docker.</li><li>Serves the requests at top speed right from the first request received.</li></ol><p>Is that even possible with Java? Oh yeah! We are back with a bang y’all!</p><p>Quarkus is a Java stack which is Cloud-native and runs on GraalVM and Hotspot. You can imagine it like Java was hit by a bolt of lightning and became Quarkus (Flash reference). Except Quarkus is a stack like Spring, only better.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*1MoUFckFfveXq7WA.png" /></figure><p>Right from the inception, Quarkus was developed as a Container First framework. Quarkus avoids reflection as much as possible and that helps GraalVM to compile almost everything needed in compile time. So the final native application generated is lightweight and occupies very little memory when loaded.</p><h4>GraalVM AOT compilation</h4><p>GraalVM is a JVM that adds an advanced Ahead Of Time compiler on top of the existing Hotspot JVM. So you can see the GraalVM release has a tag of the actual Hotspot VM it was built on top of. For example version 21.0.0.2 has 2 different downloads, one for JDK 8 and the other JDK 11. The next version will also contain JDK 16. So while building the Quarkus project we need to use the GraalVM if we want a native image.</p><p>From the IDE though it works on Hotspot JVM without any need to build the native image. This saves a lot of time as the GraalVM compilation is really slow. 5 mins guaranteed for a vanilla project. But once compiled it is blazing fast like a native application built on C.</p><h4>Lean Docker image</h4><p>Quarkus provides a plugin to generate a native image with or without final Docker image generation. Once compiled with GraalVM Quarkus build will emit a native image which can be packaged to a distro less Linux Docker image. We don’t need a JVM to run it and hence the Docker image is very compact. With this, we achieve faster deployments too.</p><h4>Live Reload</h4><p>Quarkus also features a NodeJS like auto-reload function which deploys the code immediately when you change the files and save them. This is super cool and the server starts instantaneously in the blink of an eye.</p><h4>Cloud-native and Microservice standards</h4><p>Backed by companies like Red Hat, Quarkus is built on microservice frameworks like Microprofile and Vert.X. Quarkus also includes a Kubernetes extension which we can use to easily configure the microservice and prepare them for Cloud. Quarkus can compete on par with microservices built on other languages like Golang or NodeJS (JS).</p><h4>Imperative and Reactive in one</h4><p>Quarkus also supports Imperative and Reactive style programming in the same application making it easy to try what’s needed and move to a coherent style based on the team’s decision and expertise.</p><p>Quarkus is ahead of the curve, flexing its muscle with a huge list of extensions for database access, messaging, REST APIs and whatnot.</p><p>This gives us solid reasons to adopt the cloud-native Java before taking a rash decision of choosing a language that might use you as a guinea pig.</p><blockquote>Quarkus proves that Java is still sexy, give it a try.</blockquote><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=ec62d4be13c3" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Android user authentication using Firebase with Spring boot backend — Part 2]]></title>
            <link>https://richygreat.medium.com/android-user-authentication-using-firebase-with-spring-boot-backend-part-2-2a7243cf5b0c?source=rss-6112396584e------2</link>
            <guid isPermaLink="false">https://medium.com/p/2a7243cf5b0c</guid>
            <category><![CDATA[programming]]></category>
            <category><![CDATA[mobile-app-development]]></category>
            <category><![CDATA[startup]]></category>
            <category><![CDATA[android]]></category>
            <category><![CDATA[software-development]]></category>
            <dc:creator><![CDATA[Richy Great]]></dc:creator>
            <pubDate>Sun, 25 Apr 2021 22:00:24 GMT</pubDate>
            <atom:updated>2021-04-25T22:00:24.779Z</atom:updated>
            <content:encoded><![CDATA[<h3>Android user authentication using Firebase with Spring boot backend — Part 2</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*_XRnkdly_KspenVF" /><figcaption>Photo by <a href="https://unsplash.com/@sarvenazsorour?utm_source=medium&amp;utm_medium=referral">Sarvenaz Sorour</a> on <a href="https://unsplash.com/?utm_source=medium&amp;utm_medium=referral">Unsplash</a></figcaption></figure><p>In the previous tutorial, we have seen how to prepare the android app for Google sign in using Firebase. In this tutorial, we will see how to quickly integrate firebase security into your spring boot application. When the API calls originating from the mobile application sends the Bearer token in the Authorization header, spring should be able to use this for authentication and authorization.</p><p><a href="https://medium.com/the-kickstarter/android-user-authentication-using-firebase-with-spring-boot-backend-part-1-dda26d69af0f">Android user authentication using Firebase with Spring boot backend — Part 1</a></p><h4>Bearer Token in Android</h4><p>Before each HTTP call to the backend, use the FirebaseAuth object to get the OAuth bearer token. This can be done as follows.</p><pre>FirebaseUser firebaseUser = <strong>mAuth</strong>.getCurrentUser();<br><strong>if </strong>(firebaseUser == <strong>null</strong>) {<br>    Toast.<em>makeText</em>(<strong>context</strong>, <strong>&quot;Google Login failed&quot;</strong>, Toast.<strong><em>LENGTH_SHORT</em></strong>).show();<br>    <strong>return</strong>;<br>}<br>firebaseUser.getIdToken(<strong>true</strong>)</pre><p>After the getIdToken method’s completion, you can get the bearer token from the GetTokenResult. This should be passed in the <strong>Authorization</strong> header with the prefix “Bearer” in all the calls to the backend.</p><h4>Spring Boot Firebase integration</h4><p>The only pending item in our checklist is to capture this Authorization token in the Rest API request and use it for auth. Follow the below steps to do so.</p><ol><li>Copy the google-services.json file to the resources directory of the Spring Boot app.</li><li>Add spring cloud and spring cloud gcp dependencies. Check for the latest version and group id as <strong>the below configuration is for Hoxton.SR8 cloud version</strong>.</li></ol><pre>&lt;dependencyManagement&gt;<br>    &lt;dependencies&gt;<br>        &lt;dependency&gt;<br>            &lt;groupId&gt;org.springframework.cloud&lt;/groupId&gt;<br>            &lt;artifactId&gt;spring-cloud-dependencies&lt;/artifactId&gt;<br>            &lt;version&gt;${spring.cloud-version}&lt;/version&gt;<br>            &lt;type&gt;pom&lt;/type&gt;<br>            &lt;scope&gt;import&lt;/scope&gt;<br>        &lt;/dependency&gt;<br>        &lt;dependency&gt;<br>            &lt;groupId&gt;org.springframework.cloud&lt;/groupId&gt;<br>            &lt;artifactId&gt;spring-cloud-gcp-dependencies&lt;/artifactId&gt;<br>            &lt;version&gt;${spring-cloud-gcp.version}&lt;/version&gt;<br>            &lt;type&gt;pom&lt;/type&gt;<br>            &lt;scope&gt;import&lt;/scope&gt;<br>        &lt;/dependency&gt;<br>    &lt;/dependencies&gt;<br>&lt;/dependencyManagement&gt;</pre><p>3. Add spring-cloud-gcp-starter-security-firebase to the dependencies</p><pre>&lt;dependency&gt;<br>    &lt;groupId&gt;org.springframework.cloud&lt;/groupId&gt;<br>    &lt;artifactId&gt;spring-cloud-gcp-starter-security-firebase&lt;/artifactId&gt;<br>&lt;/dependency&gt;</pre><p>4. Setup spring.cloud.gcp properties in application.yml</p><pre>spring.cloud.gcp:<br>  project-id: softwok<br>  credentials.location: classpath:/google-services.json</pre><p>That is all we need to secure our Spring Boot Rest API using Firebase, we can now inject Authentication in our rest controller to even fetch the Firebase userId. This can be used for distributed tracing across mobile and backend.</p><p>If you are interested in setting up Spring Boot for AWS, read the below article.</p><p><a href="https://medium.com/the-kickstarter/how-to-make-a-spring-boot-microservice-aws-ready-e707a98d2c9e">How to make a spring boot microservice AWS ready</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=2a7243cf5b0c" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[How to use google classroom for students]]></title>
            <link>https://richygreat.medium.com/how-to-use-google-classroom-for-students-e3faf952d33c?source=rss-6112396584e------2</link>
            <guid isPermaLink="false">https://medium.com/p/e3faf952d33c</guid>
            <category><![CDATA[teaching]]></category>
            <category><![CDATA[education]]></category>
            <category><![CDATA[students]]></category>
            <category><![CDATA[google-classroom]]></category>
            <category><![CDATA[google]]></category>
            <dc:creator><![CDATA[Richy Great]]></dc:creator>
            <pubDate>Sat, 27 Mar 2021 20:47:03 GMT</pubDate>
            <atom:updated>2021-03-27T20:47:03.746Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*2s2LdcXVI8Xzp7-M" /><figcaption>Photo by <a href="https://unsplash.com/@taypaigey?utm_source=medium&amp;utm_medium=referral">Taylor Wilcox</a> on <a href="https://unsplash.com/?utm_source=medium&amp;utm_medium=referral">Unsplash</a></figcaption></figure><p>If there is one thing that Covid-19 has taught us is that online is our Plan B. Our children’s future is at stakes when schools are struggling to build the infrastructure to drive this digital transformation. But we don’t have to wait for the mountain to come to us.</p><blockquote>If you are reading this article surely you have a computer and an internet connection. Let me assure you those are the only things needed to be an online teacher.</blockquote><p>And of course Google Classroom.</p><h4>Google Classroom</h4><p>Google Classroom is a tool to help educator teach students online. All the students need in addition to the 2 basic requirements is a google account which most of the student’s parents have. Creation of Google account is also a painless process.</p><p>Google Classroom contains the necessary ways to</p><ol><li>Manage your students in a class.</li><li>Arrange virtual classes using Google Meet.</li><li>Manage assignments.</li><li>Evaluate the performances of the students.</li></ol><h4>How to create a class in Google Classroom</h4><p>First step to setup your online teaching is to setup a class. Login to your Google account and navigate to <a href="https://classroom.google.com/">https://classroom.google.com/</a></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/520/1*bm2gb3vPokxq8qg-s0fY9A.png" /></figure><p>Click on the Plus Icon on the top right corner and select “<strong>Create Class</strong>”</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/301/1*lpFwdf8bm5M0eIWqmlCHUA.png" /></figure><p>Type Class name and Section along with Subject. Click <strong>Create</strong> to create your online class.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/594/1*_amtRy1aLPucvon0QMt0zA.png" /></figure><p>In the next screen click on “Generate Meet link” button. This is the link you need to share with your student’s to connect for your online live class room.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/587/1*UA0iREyMuruKsQr98Md4AA.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/559/1*ztkvwivPVDB_gVtM064eqQ.png" /></figure><p>Students joining your class will see this link so that they can join using Google Meet. Click <strong>Save</strong> to finish this setup.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/642/1*Xjxmx3Ke-eU9RHBVadDVjQ.png" /></figure><p>Your Google Classroom is ready for the next step.</p><h4>Invite Students to Join the class</h4><p>Next step is to add your students to the Class. Click on People tab to add your students.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/611/1*C8RhNxV5JHq-AHMEkW6EbQ.png" /></figure><p>Click on the + Icon in Students section.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/603/1*hr8el0ogACGI6wvATetg7A.png" /></figure><p>Type in the email ids of your students and click on Invite button once all your student emails are added.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/462/1*WyFJ9JLT1od9ZcREJa1usg.png" /></figure><p>The Students will receive invites via email. They can click on the <strong>JOIN</strong> button to join your class.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*5aNL4Vr2SyBMKb_EqjsHMw.png" /></figure><p>Now start your online class after setting up your webcam and teaching materials like white board. I will explain the online material preparation in a totally new tutorial. Click on the <strong>Meet link</strong> and start the class.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1017/1*k5lQ110iD3mac77XDfw9AA.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/610/1*ZpMAu5SXRnFRIrRGpuG8RA.png" /></figure><p>Once your students join you can check it in the right corner under <strong>People</strong> tab. Students can use the <strong>Chat</strong> option to raise questions and you can reply with an answer under the question.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/346/1*Ns70Aw1pXgS9muHEsrx_Bg.png" /></figure><p>Quite simple isn’t it. What’s stopping you from trying this best solution to start teaching online.</p><blockquote>Change always starts with you.</blockquote><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=e3faf952d33c" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[How to setup your startup with Google]]></title>
            <link>https://medium.com/the-kickstarter/how-to-setup-your-startup-with-google-a1368ad0c89c?source=rss-6112396584e------2</link>
            <guid isPermaLink="false">https://medium.com/p/a1368ad0c89c</guid>
            <category><![CDATA[startup]]></category>
            <category><![CDATA[cloud-computing]]></category>
            <category><![CDATA[software-development]]></category>
            <category><![CDATA[business]]></category>
            <category><![CDATA[technology]]></category>
            <dc:creator><![CDATA[Richy Great]]></dc:creator>
            <pubDate>Sun, 28 Feb 2021 09:14:24 GMT</pubDate>
            <atom:updated>2021-02-28T09:14:24.145Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*-x-nOJZGhk_Tva_y" /><figcaption>Photo by <a href="https://unsplash.com/@brookecagle?utm_source=medium&amp;utm_medium=referral">Brooke Cagle</a> on <a href="https://unsplash.com/?utm_source=medium&amp;utm_medium=referral">Unsplash</a></figcaption></figure><p>The current “stay at home and get things done” kinda world demands more than just bricks and mortar when it visualizes a business. When someone recommends a barber or a restaurant, first thing we do is search the name in google. So it is clear that the expectation for a business these days is,</p><ol><li>To have a website address that is easy to remember</li><li>Business details to be available in Google search with address, contact details and working hours.</li><li>Few generic email groups like sales@yourcompany.com and help@yourcompany.com to connect your prospective customer and support your existing customer base respectively.</li><li>Few google cloud projects for your integration, staging and production environment if you want to provide an online store.</li></ol><p>By and Large many organisations struggle a lot during digital transformation due to the complexity of how the IT is setup for their business. When they hear the terms like digital marketing, customer service softwares and cloud computing, often they think about huge budget spending and painful restructuring. It doesn’t have to be like that for yourdreamstartup.com</p><h4>Registering your Domain name</h4><p>First thing on your checklist is registering a domain name for your business.</p><p><a href="http://www.godaddy.com/">Make Your Own Way | GoDaddy</a></p><p>GoDaddy is my personal favorite due to their sales process, service and easy to use interface for Domain Management. Finding a domain name is the toughest part if your business name is quite famous. You won’t be able to get apple.com or microsoft.com, so check for availability with the Domain registrar. Once you have finalized on the domain name register it by paying the fee and wait for the domain to be ready. In most cases you will receive an email when it is ready. Next in our checklist is a tool to manage yourcompany.com completely.</p><h4>Google Workspace Account</h4><p>Google provides a complete package of tools for managing your organisation through <strong>Google Workspace</strong> previously known as <strong>G Suite</strong>. Once you signup with a decent package like <strong>Business Starter</strong> you can get your own custom email address like sales@softwok.com where softwok.com is the domain name of the business. And you also get tools like Gmail, Calendar, Meet, Chat, Drive, Docs, Sheets, Slides, Forms, Sites, and more.</p><p><a href="https://workspace.google.com/">Google Workspace: Secure Online Productivity &amp; Collaboration Tools</a></p><p>Before you begin you need a valid email address for billing and communication until your domain name custom emails are ready. This could be the personal email of the founder or CEO.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/490/1*O6uLtvk7xxAj72CAXrO6lw.png" /><figcaption>Enter your Business details in Get Started page and click Next</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/546/1*uLppLc_I_6t_MlSmrMlUzA.png" /><figcaption>Enter the email address which will receive the communication till custom emails are ready</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/501/1*Ohwihx_ckkrL7OqPbNrvmw.png" /><figcaption>Click on YES</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/532/1*5I4N5B8SS1ypLVx6VVaS0A.png" /><figcaption>Type your domain name which you created and click NEXT</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/564/1*t7emw_zB8xCD2X3t8xUWgg.png" /><figcaption>Type admin in Username and a password for your domain admin</figcaption></figure><p>The username and password created here will be the admin user for your organisation’s Google Workspace account.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/840/0*tE8S2OY24ThGsi6_.jpg" /><figcaption>Select your plan and enter your billing information in the next screen</figcaption></figure><p>With this your Google Workspace account is ready to be used. You can login with your custom email which you entered in the previous step e.g.: admin@gencopuraoliveoil.com</p><p>Now you can setup your business using Google’s <strong>My Business.</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/223/1*oFIOIfUZ6kaZ36RMY8EUKQ.png" /></figure><p>You have to verify your business location to enable all the functionalities of My Business. This verification is done through Post. Google will send a post card to your home with verification code. Once the business address is verified your Business will be available on Google search.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/376/1*U4lL-6fsyVnVxaZnjmO_yg.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/858/1*tHarUdoB7K8z8ZRzxuCpAQ.png" /></figure><h4>Domain Verification</h4><p>Next step is to verify your domain ownership. When you login to Google workspace for the first time you will be asked to verify your domain.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/800/1*XYrhtz2pohc5XbQsf5Z8Fg.png" /><figcaption>You will see why GoDaddy is my favorite when you finish this step.</figcaption></figure><h4>Business Email setup</h4><p>Now that you have informed google you own the domain, you can enable email hosting via Google in no time. Before this you need to enable <strong>Automatic Licensing</strong> so that your subscription to Google Workspace takes into effect.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/461/1*44TN-t7p82WDDuQCO2ZeIw.png" /><figcaption>Click on License settings from License menu</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*MqgppnjWsF5Wp6_HY7xhQQ.png" /><figcaption>Switch ON the Automatic licensing option</figcaption></figure><p>Now lets enable Google to handle our emails. Navigate to Account from Menu and Click Domains and then select Manage Domains. Click on <strong>Set up Google MX records</strong> and you are Done in few minutes after a quick verification</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*nRG8p7ZswbMmj-ijuDvjig.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/496/1*ECpTa3H0Nuc_UYyXJ_Exmw.png" /><figcaption>Click on Users under Directory menu</figcaption></figure><p>Now you can start creating employees of your company. And they will receive your company specific email address.</p><p>You can also start creating Groups and Organisational Units. Groups are especially used in scenarios where a group of users will receive an email for example sales@softwok.com or help@softwok.com</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/836/1*JL5fFTfXKc-CoZtyyv7prQ.png" /><figcaption>Sample of sales group I have setup for my IT consulting firm</figcaption></figure><p>Creating Google Cloud environment is a huge topic altogether, which I will cover in a totally new article.</p><p>If you are interested in knowing how a software product is developed from scratch and gets deployed to the cloud read the below article.</p><p><a href="https://medium.com/the-kickstarter/microservices-tutorial-from-initial-commit-till-running-on-cloud-3a07f8a27b27">Microservices tutorial. From Initial Commit till Running on Cloud.</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=a1368ad0c89c" width="1" height="1" alt=""><hr><p><a href="https://medium.com/the-kickstarter/how-to-setup-your-startup-with-google-a1368ad0c89c">How to setup your startup with Google</a> was originally published in <a href="https://medium.com/the-kickstarter">The KickStarter</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Android user authentication using Firebase with Spring boot backend — Part 1]]></title>
            <link>https://medium.com/the-kickstarter/android-user-authentication-using-firebase-with-spring-boot-backend-part-1-dda26d69af0f?source=rss-6112396584e------2</link>
            <guid isPermaLink="false">https://medium.com/p/dda26d69af0f</guid>
            <category><![CDATA[mobile-app-development]]></category>
            <category><![CDATA[software-development]]></category>
            <category><![CDATA[startup]]></category>
            <category><![CDATA[android]]></category>
            <category><![CDATA[programming]]></category>
            <dc:creator><![CDATA[Richy Great]]></dc:creator>
            <pubDate>Sun, 03 Jan 2021 00:52:55 GMT</pubDate>
            <atom:updated>2021-01-03T00:52:55.937Z</atom:updated>
            <content:encoded><![CDATA[<h3>Android user authentication using Firebase with Spring boot backend — Part 1</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*dBi5FggYAf9aHGdp" /><figcaption>Photo by <a href="https://unsplash.com/@rmrdnl?utm_source=medium&amp;utm_medium=referral">Daniel Romero</a> on <a href="https://unsplash.com/?utm_source=medium&amp;utm_medium=referral">Unsplash</a></figcaption></figure><p>Architecture is an indispensable part of software development. Taking the wise decisions in the early stages of your product development lifecycle will save you a lot of money. Most importantly a well architected solution will protect a company from the grudges of disgruntled software developers.</p><p>It is often the case that you might want to provide user specific content or features in your android app. A social networking app, a video backup tool, a fitness app, all of these will require a user authentication. But when an Architect is not aware of options other than oauth we might end up in a rigid solution.</p><p>When I said other options I meant Firebase. Firebase is a one stop shop to integrate a wide variety of solutions in your android app like authentication, crash reports, database, etc. In this 2 part article we will see how to integrate Google authentication in your android app. The probability of android users having a Google account is pretty high. So providing ‘Google SignIn’ button in your android app is more than enough to serve the world during your MVP phase.</p><p>There are 2 major steps in accomplishing this.</p><ol><li>Integrate Firebase in your android app</li><li>Integrate Firebase in your Backend for Frontend (BFF)</li></ol><h4>Integrating Firebase in your android app</h4><p>Firebase is a tool from Google to build android app infrastructure using ready made tools like Authentication. Firebase behind the scene is run on Google Cloud Platform, so when you create a Firebase project for your android app a GCP project is automatically created.</p><blockquote>Create different Firebase projects for each of your environments (DTAP).</blockquote><p><a href="https://console.firebase.google.com/">https://console.firebase.google.com/</a></p><p>Login using your google account (organisational) into firebase console.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*bDU9_bdwbJ6g6QgGX--4eA.png" /><figcaption>Click on <strong>Create a project</strong></figcaption></figure><p>If you want to share users between apps and you are providing an ecosystem like services then you can create one project for the whole ecosystem. If you don’t want to share users between apps you can create app specific projects.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/676/1*dFuc_LMLXAxqEsjhRJAIJg.png" /><figcaption>I am creating an app specific project for development environment</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/783/1*rbN7ALOUD_pPrB7nmZCrCw.png" /><figcaption>Enable Google Analytics and Continue</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/765/1*BtHQmP31XECrmd27qbLTcg.png" /><figcaption>Select Default Account for Firebase and <strong>Create project</strong></figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/242/1*mbONOLe1xJxU5SocEkEZ2g.png" /><figcaption>Once your project is ready click Continue</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*g-I9pJeaKQQQpi351DJ-7A.png" /><figcaption>You can also see the project in GCP console once it is ready</figcaption></figure><blockquote>Don’t forget to create Billing alerts for your Firebase projects in GCP.</blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/960/1*yYIHhGUbcl9UMN8bjlJ2UA.png" /><figcaption>Click on <strong>Authentication</strong> and <strong>Get started</strong></figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*njCJYjKE5Nw7iBXUYBGUUg.png" /><figcaption>Select a public facing name for your app which will be displayed in Google login screen</figcaption></figure><p>Enable Google Sign-in method. Also ‘support email’ is mandatory for the login to work. Leave rest of the fields for defaults and <strong>Save</strong>.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/973/1*TX08caNm8NBOYHyjYefQHg.png" /><figcaption>You can see that Google is Enabled now</figcaption></figure><h4>Android Project and Code changes for Authentication</h4><p>Firstly we will have to add few dependencies in gradle to enable Firebase authentication.</p><p>I have created a sample android project with just Main Activity in Android studio.</p><p>Before we start with code changes the app needs to be added to Firebase.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/284/1*aAeKI_aRK_QJS2jAFh2_kQ.png" /><figcaption>Open app module in Gradle window and run signingReport</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/859/1*Q_pFveRFJZmZekUOTz9ldw.png" /><figcaption>Copy the SHA1 value from the console output of signingReport</figcaption></figure><p>Also copy the package from android manifest and keep it ready for the next step.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/636/1*zHTjYxKLAR8yuXzzryErSQ.png" /></figure><p>Open <strong>Project Overview</strong> in Firebase.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*z66sSvFwNBr4qFfG1IAQyA.png" /><figcaption>In Project Overview Click on Android icon to Add an app</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/612/1*tGU0oMjzeHH6WbpeaBF_Mg.png" /><figcaption>Register App using the details collected previously</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/787/1*_fDJF3c8nUkBSDmjPDSx7w.png" /><figcaption>Download google-services.json and paste it in your app module</figcaption></figure><p>Skip the next 2 steps which we will see in detail later. You can click on the app to view the settings.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/531/1*zsSEkLzaQcQJfrk16erLmQ.png" /><figcaption>Click on the Gear icon</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/960/1*bkgrhL7WVHsoYN2EDECb9g.png" /><figcaption>You can download the google-services.json anytime from here</figcaption></figure><p>Now let’s get back to our code changes.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*jCOso0wg4qWE-zKF7t_gEg.png" /></figure><p>Add the below dependency in Project build.gradle file</p><pre>classpath <strong>&#39;com.google.gms:google-services:4.3.4&#39;</strong></pre><p>Add the below plugin and dependencies in Module build.gradle</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/440/1*NipC6ytPqrFBjqsUGKXFnw.png" /><figcaption>Module plugin</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/654/1*VY3gge71m-fF40Fh2dMBfQ.png" /><figcaption>Module dependencies</figcaption></figure><p>Add the below plugin in build.gradle of the Module.</p><pre>id <strong>&#39;com.google.gms.google-services&#39;</strong></pre><p>Add the below dependencies in build.gradle of the Module.</p><pre>implementation platform(<strong>&#39;com.google.firebase:firebase-bom:26.1.1&#39;</strong>)<br>implementation <strong>&#39;com.google.firebase:firebase-auth&#39;<br></strong>implementation <strong>&#39;com.google.android.gms:play-services-auth:19.0.0&#39;</strong></pre><p>Now let’s add the Google SignIn button and a Logout button to our main activity layout.</p><pre><em>&lt;?</em>xml version=&quot;1.0&quot; encoding=&quot;utf-8&quot;<em>?&gt;<br></em>&lt;androidx.constraintlayout.widget.ConstraintLayout xmlns:android=&quot;http://schemas.android.com/apk/res/android&quot;<br>    xmlns:app=&quot;http://schemas.android.com/apk/res-auto&quot;<br>    xmlns:tools=&quot;http://schemas.android.com/tools&quot;<br>    android:layout_width=&quot;match_parent&quot;<br>    android:layout_height=&quot;match_parent&quot;<br>    tools:context=&quot;.MainActivity&quot;&gt;<br><br>    &lt;com.google.android.gms.common.SignInButton<br>        android:id=&quot;@+id/loginButton&quot;<br>        android:layout_width=&quot;wrap_content&quot;<br>        android:layout_height=&quot;wrap_content&quot;<br>        app:colorScheme=&quot;dark&quot;<br>        app:layout_constraintBottom_toBottomOf=&quot;parent&quot;<br>        app:layout_constraintLeft_toLeftOf=&quot;parent&quot;<br>        app:layout_constraintRight_toRightOf=&quot;parent&quot;<br>        app:layout_constraintTop_toTopOf=&quot;parent&quot; /&gt;<br><br>    &lt;com.google.android.material.floatingactionbutton.FloatingActionButton<br>        android:id=&quot;@+id/logoutButton&quot;<br>        android:layout_width=&quot;wrap_content&quot;<br>        android:layout_height=&quot;wrap_content&quot;<br>        android:layout_gravity=&quot;end|bottom&quot;<br>        android:layout_marginEnd=&quot;20dp&quot;<br>        android:layout_marginBottom=&quot;20dp&quot;<br>        android:clickable=&quot;true&quot;<br>        android:contentDescription=&quot;Logout&quot;<br>        android:focusable=&quot;true&quot;<br>        app:layout_constraintBottom_toBottomOf=&quot;parent&quot;<br>        app:layout_constraintRight_toRightOf=&quot;parent&quot;<br>        app:srcCompat=&quot;@android:drawable/ic_lock_power_off&quot; /&gt;<br><br>&lt;/androidx.constraintlayout.widget.ConstraintLayout&gt;</pre><p>Open MainActivity.java and paste the below code for SignIn and Logout.</p><pre><strong>package </strong>com.softwok.softwoktutorialapp;<br><br><strong>import </strong>android.content.Intent;<br><strong>import </strong>android.os.Bundle;<br><strong>import </strong>android.util.Log;<br><strong>import </strong>android.view.View;<br><br><strong>import </strong>androidx.appcompat.app.AppCompatActivity;<br><br><strong>import </strong>com.google.android.gms.auth.api.signin.GoogleSignIn;<br><strong>import </strong>com.google.android.gms.auth.api.signin.GoogleSignInAccount;<br><strong>import </strong>com.google.android.gms.auth.api.signin.GoogleSignInClient;<br><strong>import </strong>com.google.android.gms.auth.api.signin.GoogleSignInOptions;<br><strong>import </strong>com.google.android.gms.common.SignInButton;<br><strong>import </strong>com.google.android.gms.common.api.ApiException;<br><strong>import </strong>com.google.android.gms.common.api.Status;<br><strong>import </strong>com.google.android.gms.tasks.Task;<br><strong>import </strong>com.google.android.material.floatingactionbutton.FloatingActionButton;<br><strong>import </strong>com.google.android.material.snackbar.Snackbar;<br><strong>import </strong>com.google.firebase.auth.AuthCredential;<br><strong>import </strong>com.google.firebase.auth.FirebaseAuth;<br><strong>import </strong>com.google.firebase.auth.GoogleAuthProvider;<br><br><strong>public class </strong>MainActivity <strong>extends </strong>AppCompatActivity <strong>implements </strong>View.OnClickListener {<br>    <strong>private static final </strong>String <strong><em>TAG </em></strong>= <strong>&quot;MainActivity&quot;</strong>;<br>    <strong>private static final int <em>RC_SIGN_IN </em></strong>= 9001;<br>    <strong>private </strong>FirebaseAuth <strong>mAuth</strong>;<br>    <strong>private </strong>GoogleSignInClient <strong>mGoogleSignInClient</strong>;<br><br>    @Override<br>    <strong>protected void </strong>onCreate(Bundle savedInstanceState) {<br>        <strong>super</strong>.onCreate(savedInstanceState);<br>        setContentView(R.layout.<strong><em>activity_main</em></strong>);<br><br>        SignInButton loginButton = findViewById(R.id.<strong><em>loginButton</em></strong>);<br>        loginButton.setOnClickListener(<strong>this</strong>);<br><br>        FloatingActionButton logoutButton = findViewById(R.id.<strong><em>logoutButton</em></strong>);<br>        logoutButton.setOnClickListener(<strong>this</strong>);<br><br>        GoogleSignInOptions gso = <strong>new </strong>GoogleSignInOptions.Builder(GoogleSignInOptions.<strong><em>DEFAULT_SIGN_IN</em></strong>)<br>                .requestIdToken(getString(R.string.<strong><em>default_web_client_id</em></strong>))<br>                .requestEmail()<br>                .build();<br><br>        <strong>mGoogleSignInClient </strong>= GoogleSignIn.<em>getClient</em>(<strong>this</strong>, gso);<br><br>        <strong>mAuth </strong>= FirebaseAuth.<em>getInstance</em>();<br>        <strong>if </strong>(<strong>mAuth</strong>.getCurrentUser() == <strong>null</strong>) {<br>            setLoggedOutUi();<br>        } <strong>else </strong>{<br>            setLoggedInUi();<br>        }<br>    }<br><br>    @Override<br>    <strong>public void </strong>onClick(View v) {<br>        <strong>if </strong>(v.getId() == R.id.<strong><em>loginButton</em></strong>) {<br>            Log.<em>i</em>(<strong><em>TAG</em></strong>, <strong>&quot;loginButton Clicked&quot;</strong>);<br>            Intent signInIntent = <strong>mGoogleSignInClient</strong>.getSignInIntent();<br>            startActivityForResult(signInIntent, <strong><em>RC_SIGN_IN</em></strong>);<br>        } <strong>else if </strong>(v.getId() == R.id.<strong><em>logoutButton</em></strong>) {<br>            Log.<em>i</em>(<strong><em>TAG</em></strong>, <strong>&quot;logoutButton Clicked&quot;</strong>);<br>            signOut();<br>        }<br>    }<br><br>    <strong>private void </strong>firebaseAuthWithGoogle(String idToken) {<br>        AuthCredential credential = GoogleAuthProvider.<em>getCredential</em>(idToken, <strong>null</strong>);<br>        <strong>mAuth</strong>.signInWithCredential(credential)<br>                .addOnCompleteListener(<strong>this</strong>, task -&gt; {<br>                    <strong>if </strong>(task.isSuccessful()) {<br>                        <em>// Sign in success, update UI with the signed-in user&#39;s information<br>                        </em>Log.<em>i</em>(<strong><em>TAG</em></strong>, <strong>&quot;signInWithCredential:success&quot;</strong>);<br>                        setLoggedInUi();<br>                        Snackbar.<em>make</em>(findViewById(android.R.id.<strong><em>content</em></strong>),<br>                                <strong>&quot;Login successful&quot;</strong>, Snackbar.<strong><em>LENGTH_LONG</em></strong>).show();<br>                    } <strong>else </strong>{<br>                        <em>// If sign in fails, display a message to the user.<br>                        </em>Log.<em>w</em>(<strong><em>TAG</em></strong>, <strong>&quot;signInWithCredential:failure&quot;</strong>, task.getException());<br>                        Snackbar.<em>make</em>(findViewById(android.R.id.<strong><em>content</em></strong>),<br>                                <strong>&quot;Login failed&quot;</strong>, Snackbar.<strong><em>LENGTH_LONG</em></strong>).show();<br>                    }<br>                });<br>    }<br><br>    <strong>private void </strong>signOut() {<br>        <em>// Firebase sign out<br>        </em><strong>mAuth</strong>.signOut();<br><br>        <em>// Google sign out<br>        </em><strong>mGoogleSignInClient</strong>.signOut().addOnCompleteListener(<strong>this</strong>,<br>                task -&gt; {<br>                    Log.<em>i</em>(<strong><em>TAG</em></strong>, <strong>&quot;signOut:success&quot;</strong>);<br>                    setLoggedOutUi();<br>                    Snackbar.<em>make</em>(findViewById(android.R.id.<strong><em>content</em></strong>),<br>                            <strong>&quot;Logout successful&quot;</strong>, Snackbar.<strong><em>LENGTH_LONG</em></strong>).show();<br>                });<br>    }<br><br>    @Override<br>    <strong>public void </strong>onActivityResult(<strong>int </strong>requestCode, <strong>int </strong>resultCode, Intent data) {<br>        <strong>super</strong>.onActivityResult(requestCode, resultCode, data);<br><br>        <em>// Result returned from launching the Intent from GoogleSignInApi.getSignInIntent(...);<br>        </em><strong>if </strong>(requestCode == <strong><em>RC_SIGN_IN</em></strong>) {<br>            Task&lt;GoogleSignInAccount&gt; task = GoogleSignIn.<em>getSignedInAccountFromIntent</em>(data);<br>            <strong>try </strong>{<br>                <em>// Google Sign In was successful, authenticate with Firebase<br>                </em>GoogleSignInAccount account = task.getResult(ApiException.<strong>class</strong>);<br>                <strong>if </strong>(account == <strong>null</strong>) {<br>                    <strong>throw new </strong>ApiException(Status.<strong><em>RESULT_INTERNAL_ERROR</em></strong>);<br>                }<br>                Log.<em>i</em>(<strong><em>TAG</em></strong>, <strong>&quot;firebaseAuthWithGoogle:&quot; </strong>+ account.getId());<br>                firebaseAuthWithGoogle(account.getIdToken());<br>            } <strong>catch </strong>(ApiException e) {<br>                <em>// Google Sign In failed, update UI appropriately<br>                </em>Log.<em>w</em>(<strong><em>TAG</em></strong>, <strong>&quot;Google sign in failed&quot;</strong>, e);<br>                Snackbar.<em>make</em>(findViewById(android.R.id.<strong><em>content</em></strong>),<br>                        <strong>&quot;Login failed&quot;</strong>, Snackbar.<strong><em>LENGTH_LONG</em></strong>).show();<br>            }<br>        }<br>    }<br><br>    <strong>private void </strong>setLoggedInUi() {<br>        findViewById(R.id.<strong><em>loginButton</em></strong>).setVisibility(View.<strong><em>INVISIBLE</em></strong>);<br>        findViewById(R.id.<strong><em>logoutButton</em></strong>).setVisibility(View.<strong><em>VISIBLE</em></strong>);<br>    }<br><br>    <strong>private void </strong>setLoggedOutUi() {<br>        findViewById(R.id.<strong><em>logoutButton</em></strong>).setVisibility(View.<strong><em>INVISIBLE</em></strong>);<br>        findViewById(R.id.<strong><em>loginButton</em></strong>).setVisibility(View.<strong><em>VISIBLE</em></strong>);<br>    }<br>}</pre><p>Most important step after this is to Build the project to see if you have skipped any step which might have caused a compile error.</p><p>Most often developers forget to paste the google-services.json in app module.</p><h4>Login Flow in action</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*oGeXkjpWIWO-q_lqz5CnGA.png" /><figcaption>Login flow of the rendered Application</figcaption></figure><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=dda26d69af0f" width="1" height="1" alt=""><hr><p><a href="https://medium.com/the-kickstarter/android-user-authentication-using-firebase-with-spring-boot-backend-part-1-dda26d69af0f">Android user authentication using Firebase with Spring boot backend — Part 1</a> was originally published in <a href="https://medium.com/the-kickstarter">The KickStarter</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
    </channel>
</rss>