<?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 Samuel Zeru on Medium]]></title>
        <description><![CDATA[Stories by Samuel Zeru on Medium]]></description>
        <link>https://medium.com/@saminium?source=rss-35e8c06f4728------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/0*lpyvSLyXqmrQzamD.jpg</url>
            <title>Stories by Samuel Zeru on Medium</title>
            <link>https://medium.com/@saminium?source=rss-35e8c06f4728------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Mon, 30 Nov 2026 15:43:24 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@saminium/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[Evaluating AI in a Real-World Church Management System: The ‘Amen Project’]]></title>
            <link>https://medium.com/@saminium/building-and-testing-an-ai-driven-church-management-system-amen-project-2b2d8268034b?source=rss-35e8c06f4728------2</link>
            <guid isPermaLink="false">https://medium.com/p/2b2d8268034b</guid>
            <dc:creator><![CDATA[Samuel Zeru]]></dc:creator>
            <pubDate>Sat, 15 Feb 2025 00:58:12 GMT</pubDate>
            <atom:updated>2025-08-01T18:07:13.282Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*cw53HzSyn0ZWA0LJpxWbTA.png" /></figure><p><strong>The Genesis</strong></p><p>As 2024 drew to a close, I found myself sitting in our community church’s year-end meeting. As various church leaders presented their reports, my engineering mind began to spot patterns — challenges that could be solved through technology. With software engineering experience and the recent advances in AI development tools, I saw an opportunity to make a difference..</p><p>Given the rising interest in AI, and with my winter break perfectly aligned, I decided to build a prototype that would not only benefit my church but could also scale to serve other churches in my community and beyond and allow me to attempt E2E product development using AI. This initiative became the “Amen Project.”</p><p><strong>Defining the System Requirements</strong></p><p>Before diving into development, I first identified the key features the platform should include to address the pain points I observed:</p><ul><li>Church Event Management</li><li>Church Services Management</li><li>Membership Management</li><li>Payment Systems</li><li>End-to-End Encrypted Real-Time Messaging (for one-on-one and group chat, calls, and video)</li><li>Notification System</li></ul><p>As the only person aware of this project, I realized that I needed to quickly develop a working prototype to effectively demonstrate the platform’s value.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*jHiOxf0sNuYjYMEIQu8a7A.png" /></figure><p><strong>Tech Stack</strong></p><p>For rapid prototyping with scalability in mind, I selected a tech stack that combined flexibility and efficiency:</p><ul><li><strong>IDE:</strong> Cursor (AI-powered development environment with seamless copilot integrations)</li><li><strong>Backend:</strong> Node.js</li><li><strong>Frontend:</strong> React, TypeScript</li><li><strong>Mobile:</strong> React Native with Expo</li><li><strong>Database:</strong> MongoDB</li></ul><p><strong>Development Approach</strong></p><p><strong>1. Backend Implementation</strong></p><p>The first step in development was setting up the backend architecture, focusing on defining the core modules. I started with the <strong>Authentication</strong> module, which included features like signup, login, password resets, and SSO integrations. Cursor proved invaluable during this process, not only assisting with schema definition and service implementation but also generating detailed API documentation.</p><p>Once the authentication layer was solid, I moved on to:</p><ul><li><strong>Communication Service Backend</strong> (for messaging and notifications)</li><li><strong>Amen Backend</strong> (a consolidated service for church payments, services, and donations)</li></ul><p>The system is already built with microservices, with the Communications Backend and Amen Backend powering mobile and web apps. While the initial goal was to keep things simple, there’s room to break things down further into more microservices as the need arises.</p><p><strong>2. Mobile App Development</strong></p><p>As my expertise is primarily in the backend and infrastructure, mobile development posed a challenge. However, AI tools like Cursor helped streamline this process significantly.</p><p>I started by bootstrapping a <strong>React Native Expo app</strong>, leveraging AI-driven prompts to design the UI. Initially, I used <strong>mock payloads</strong> to simulate backend responses and test the app. Once the UI was refined, I swapped in actual API calls, ensuring the mobile app functioned seamlessly with the backend.</p><p><strong>3. Building the Web App</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*wqhF0SBxdVn8fcxC3IZpmg.png" /></figure><p>The web app required two distinct interfaces:</p><ul><li><strong>Admin Dashboard</strong> (for church leaders to manage users, settings, and services)</li><li><strong>Client Web App</strong> (mirroring the mobile app’s functionality for users who prefer a browser-based experience)</li></ul><p>Rather than building the admin dashboard from the ground up, I purchased a <strong>production-ready React template</strong> for $60, which I then customized using AI tools to integrate with my backend. This approach saved significant time while still delivering a professional interface.</p><p><strong>Challenges Encountered</strong></p><p><strong>1. AI Usage and Limitations</strong></p><p>While AI tools like Cursor, Claude.ai, and ChatGPT were integral to the project’s development, I encountered a few limitations:</p><ul><li><strong>Token Limits &amp; Free Tier Constraints</strong> AI tools, especially the free versions, often hit token limits quickly, limiting how much could be processed in a single session. Switching between different AI models helped mitigate this issue but caused context-switching issues.</li><li><strong>Contextual Consistency</strong> AI models sometimes struggle with maintaining consistent context, leading to variations in generated code. This required me to review the AI’s output frequently to ensure everything was cohesive.</li><li><strong>UI Generation Variability</strong> Although AI-generated UIs were helpful, some models produced inconsistent results. Claude.ai, for instance, consistently provided well-structured UI suggestions, so I started generating the UI with Claude and then guided other models to match its style.</li></ul><p><strong>2. AI Subscription Decision</strong></p><p>To alleviate limitations and the code getting much more extensive, I eventually subscribed to <strong>Cursor</strong>, which removed usage restrictions and provided more seamless AI integration. The subscription fee was minimal compared to the productivity gains I experienced.</p><p><strong>Key Takeaways</strong></p><ol><li><strong>AI is Transforming Software Development</strong></li></ol><ul><li>AI-powered development tools are revolutionizing how software is built, enabling faster, more efficient development cycles and lowering costs.</li></ul><p><strong>2. Opportunities for Rapid Prototyping</strong></p><ul><li>AI allows individuals and small teams to create production-ready solutions without a large budget. Open-source models like<strong> </strong><a href="https://www.deepseek.com/">DeepSeek-R1</a> and <a href="https://www.llama.com/">Llama</a> offer developers a cost-effective way to customize AI for specific use cases.</li></ul><p><strong>3. The Future of Software Engineering</strong></p><ul><li>The role of software engineers is evolving. While AI will likely reduce the need for traditional manual coding, engineers who can leverage AI’s full potential will still play a critical role in building impactful and competitive solutions.</li></ul><p><strong>Quick Demo video</strong></p><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fwww.youtube.com%2Fembed%2FttX03GKTVyE%3Ffeature%3Doembed&amp;display_name=YouTube&amp;url=https%3A%2F%2Fwww.youtube.com%2Fwatch%3Fv%3DttX03GKTVyE&amp;image=https%3A%2F%2Fi.ytimg.com%2Fvi%2FttX03GKTVyE%2Fhqdefault.jpg&amp;type=text%2Fhtml&amp;schema=youtube" width="640" height="480" frameborder="0" scrolling="no"><a href="https://medium.com/media/f0e5cdacdf4d4c21ada0f0ab7dd8ede9/href">https://medium.com/media/f0e5cdacdf4d4c21ada0f0ab7dd8ede9/href</a></iframe><p>What began as a simple idea evolved into a fully functional platform thanks to AI tools. In just <strong>two weeks</strong>, I was able to develop a working prototype of the “Amen Project.” While AI tools have their limitations, they have proven to be powerful allies in the development process.</p><p>Looking ahead, I believe that AI-driven development will transform the software industry, opening doors for more rapid innovation and lowering barriers to entry. The key to success will lie in understanding <strong>when and how to use AI effectively</strong> in tandem with engineering expertise.</p><p><em>About the Author: A software engineer passionate about using technology to solve real-world community challenges.</em></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=2b2d8268034b" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[AWS Multi Region Multi Account DynamoDB access]]></title>
            <link>https://medium.com/@saminium/working-on-multi-region-and-multi-account-dynamodb-55e1d47b187f?source=rss-35e8c06f4728------2</link>
            <guid isPermaLink="false">https://medium.com/p/55e1d47b187f</guid>
            <category><![CDATA[aws-multiple-accounts]]></category>
            <category><![CDATA[node-dynamodb]]></category>
            <category><![CDATA[multi-user-access]]></category>
            <category><![CDATA[dynamodb]]></category>
            <category><![CDATA[aws-multiple-regions]]></category>
            <dc:creator><![CDATA[Samuel Zeru]]></dc:creator>
            <pubDate>Sun, 27 Nov 2022 23:13:00 GMT</pubDate>
            <atom:updated>2022-11-28T19:06:29.385Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*kxEUjyv6yJBeL_0G7vLLdQ.jpeg" /></figure><p>In this short blog, I would like to share my experience working with a node app accessing DynamoDB from two different AWS regions, and two different AWS accounts.</p><p>The actual use case for me was a data migration work where some resources like S3 and DynamoDB exist in us-east-1 with account-A and the destination resources exist in another DynamoDB in us-west-2 with account-B. The app I am using is a node service that does communications and minor data manipulations.</p><p>For this article, I like to simulate the scenario with a very basic structure which will give us the desired goal of the article which is to be able to read dynamo DB from the us-east-1 region with account-A and add the same data with minor modification to us-west-2 with different account account-B.</p><p>Coming soon will add another article about simple CRUD operations with Node and DynamoDB.</p><p>Now, let’s set up our node service this article</p><p>Here is my package.json</p><pre>{<br>  &quot;name&quot;: &quot;sync-data-preparator&quot;,<br>  &quot;version&quot;: &quot;1.0.0&quot;,<br>  &quot;author&quot;: &quot;Sam&quot;,<br>  &quot;description&quot;: &quot;This script will demonstrate how to connect to different aws regions with and different accounts&quot;,<br>  &quot;main&quot;: &quot;app.js&quot;,<br>  &quot;scripts&quot;: {<br>    &quot;dev&quot;: &quot;cross-env NODE_ENV=dev node --use_strict app.js&quot;,<br>    &quot;start&quot;: &quot;node --use_strict app.js&quot;<br>  },<br>  &quot;dependencies&quot;: {<br>    &quot;@aws-sdk/client-dynamodb&quot;: &quot;^3.137.0&quot;,<br>    &quot;@aws-sdk/client-secrets-manager&quot;: &quot;^3.137.0&quot;,<br>    &quot;@aws-sdk/client-sts&quot;: &quot;^3.137.0&quot;,<br>    &quot;@aws-sdk/credential-provider-node&quot;: &quot;^3.137.0&quot;,<br>    &quot;@aws-sdk/credential-providers&quot;: &quot;^3.137.0&quot;,<br>    &quot;@aws-sdk/lib-dynamodb&quot;: &quot;^3.216.0&quot;,<br>    &quot;aws-sdk&quot;: &quot;^2.1261.0&quot;,<br>    &quot;lodash&quot;: &quot;^4.17.21&quot;,<br>    &quot;node-schedule&quot;: &quot;2.1.0&quot;,<br>    &quot;uuid&quot;: &quot;9.0.0&quot;<br>  },<br>  &quot;devDependencies&quot;: {<br>    &quot;cross-env&quot;: &quot;^7.0.3&quot;<br>  }<br>}</pre><p>The first process for this service is to get the data from <em>us-east-1</em> and then pass this data to the processor and then send processed data to <em>us-west-2</em></p><pre>const config = require(&quot;../conf/conf&quot;);<br>const credentialsFromSts = require(&quot;./sts-service&quot;); (1)<br><br>//this is for demo purpose you can use what ever kind of params you want to get the data from source db<br>const findUserDetails = async (userId) =&gt; {<br>  const tableName = config.userService.aws.dyanamoTableName;<br>  const region = config.userService.aws.region;<br>  const arn = config.userService.aws.roleArn;<br><br>  const cred = await credentialsFromSts(arn); (2)<br>  const client = await dynamoClient(region, cred, &quot;east_user&quot;); (3)<br><br>  const params = {<br>    TableName: tableName,<br>    Key: {<br>      userId: { S: `${userId}` },<br>    },<br>    ProjectionExperession: &quot;userId, firstName, lastName, email, profileId&quot;,<br>  };<br>  try {<br>    const response = await client.send(new GetItemCommand(params)); (4)<br>    const user = DynamoDB.Converter.unmarshall(response.Item, {<br>      nullValue: { NULL: true },<br>      boolValue: { BOOL: true },<br>    });<br>    return user; <br>  } catch (error) {<br>    console.log(`Error getting record from dynamo : ${err.message}`);<br>    console.log(error);<br>  }<br>};</pre><p>(1 ) — <em>credentialsFromSts </em>is a function that will give us assumed credentials for the provided role <em>arn</em> on (2) this role needs to have enough Dynamo permissions and in addition to it you need to add the following trust relationship</p><pre>#this trust relationship is added to the role in us-east-1<br>{<br>    &quot;Version&quot;: &quot;2012-10-17&quot;,<br>    &quot;Statement&quot;: [<br>        {<br>            &quot;Effect&quot;: &quot;Allow&quot;,<br>            &quot;Principal&quot;: {<br>                &quot;AWS&quot;: [<br>                    &quot;arn:aws:iam::ACCOUNT_ID_B:user/uswest2user&quot;,<br>                    &quot;arn:aws:iam::ACCOUNT_ID_A:root&quot;<br>                ]<br>            },<br>            &quot;Action&quot;: &quot;sts:AssumeRole&quot;<br>        }<br>    ]<br>},<br><br></pre><pre>#add this inline policy to us-west-2 user<br>{<br>    &quot;Version&quot;: &quot;2012-10-17&quot;,<br>    &quot;Statement&quot;: [<br>        {<br>            &quot;Effect&quot;: &quot;Allow&quot;,<br>            &quot;Action&quot;: [<br>                &quot;sts:AssumeRole&quot;<br>            ],<br>            &quot;Resource&quot;: &quot;arn:aws:iam::ACCOUNT_ID_A:role/DynamoAccessRole&quot;<br>        }<br>    ]<br>}</pre><p>(3) — will use the assumed role cred and create <em>dynamoClient </em>note here the client is created from a profile “east_user” which is found in your <em>~/.aws/credentials</em> file</p><p>(4) — will make the dynamoClient call it can be any dynamo API call for more on this please check <a href="https://docs.aws.amazon.com/sdk-for-javascript/v3/developer-guide/welcome.html">AWS dynamoDB reference doc</a></p><p>The second part of this is using this data we make a minor modifications to the data and make another dynamoDB call</p><pre>const updateUsersProfile = async (users) =&gt; {                     (1)<br>  const updateInputs = await Promise.all(users.map(createUpdateRequest));<br>  const dynamoRequest = _.chunk(updateInputs, 25);<br>  await Promise.all(dynamoRequest.map(sendUpdateUserRequests));<br>};<br><br>const createUpdateRequest = async (user) =&gt; {                      (2)<br>  const tableName = config.profileService.aws.dyanamoTableName;<br><br>  return {<br>    Statement: `<br>                INSERT INTO &quot;${tableName}&quot; <br>                VALUE { &#39;userId&#39;:?, &#39;firstName&#39;:? ,&#39;lastName&#39;: ?, &#39;profileUpdated&#39;:?}`,<br>    Parameters: [<br>      { S: user.userId },<br>      { S: user.firstName },<br>      { S: user.lastName },<br>      { BOOL: true },<br>    ],<br>  };<br>};<br><br>const sendUpdateUserRequests = async (sendRequest) =&gt; {             (3)<br>  try {<br>    const region = config.profileService.aws.region;<br><br>    const client = await dynamoClient(region, defaultProvider(), &quot;default&quot;);<br>    const params = { Statements: sendRequest };<br>    console.log({ params: JSON.stringify(params, null, 2) });<br>    const command = new BatchExecuteStatementCommand(params);<br><br>    const response = await client.send(command);<br><br>    console.log({ response: JSON.stringify(response, null, 2) });<br>    return response;<br>  } catch (err) {<br>    throw err;<br>  }<br>};</pre><p>(1) — <em>updateUsersProfile. </em>is a function which is processing incoming users each user will be processed and added <em>profileUpdated</em> flag in it</p><p>(2) — <em>createUpdateRequest. </em>creates dynamoBatchExecusteStatement from each user add for more on this please take a look <a href="https://docs.aws.amazon.com/sdk-for-javascript/v3/developer-guide/javascript_dynamodb_code_examples.html">here</a></p><p>(3) — <em>sendUpdateUserRequests. </em>this is a method that makes the actual call to dynamoClient note the client is created with a different user profile “<em>default</em>”</p><p>Summary</p><p>We can use AWS STS to assume role credentials from appropriately configured users/roles and make multi-account multi-region access in AWS. In this example, we have seen a simple get user from<em> account-A</em> in AWS region <em>us-east-1</em> and send an updated user to <em>account-B</em> in<em> us-west-2</em>.</p><p>Thanks for reading. You can find this code repo <a href="https://github.com/saminiumTutorials/MultiRegionMultiAccountDynamoDBAccess">here</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=55e1d47b187f" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>