<?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 Kapansa on Medium]]></title>
        <description><![CDATA[Stories by Samuel Kapansa on Medium]]></description>
        <link>https://medium.com/@kapansa?source=rss-76d445c1f3af------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*xhdXfl5Q-5PUEwhq-g1S9g.jpeg</url>
            <title>Stories by Samuel Kapansa on Medium</title>
            <link>https://medium.com/@kapansa?source=rss-76d445c1f3af------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Wed, 02 Dec 2026 04:03:06 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@kapansa/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[Building Snapgram: A Modern Developer Stack Deep Dive with Next.js,]]></title>
            <link>https://kapansa.medium.com/building-snapgram-a-modern-developer-stack-deep-dive-with-next-js-bbcc83a9975a?source=rss-76d445c1f3af------2</link>
            <guid isPermaLink="false">https://medium.com/p/bbcc83a9975a</guid>
            <category><![CDATA[nextjsa16]]></category>
            <category><![CDATA[better-auth]]></category>
            <category><![CDATA[cloudflare-r2]]></category>
            <category><![CDATA[prisma-orm]]></category>
            <category><![CDATA[neon]]></category>
            <dc:creator><![CDATA[Samuel Kapansa]]></dc:creator>
            <pubDate>Sun, 25 Oct 2026 01:17:51 GMT</pubDate>
            <atom:updated>2026-10-25T01:17:51.644Z</atom:updated>
            <content:encoded><![CDATA[<h3>Building Snapgram: A Modern Developer Stack Deep Dive with Next.js, Neon, Prisma, Cloudflare R2, and Better Auth</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*zFsbJVehUrw8zeD_b31tRA.png" /><figcaption>Cover image: AI-generated illustration.</figcaption></figure><p>When building a full-stack, media-rich web application today, developers often face a tough choice. You can either lock yourself into an all-in-one Backend-as-a-Service (BaaS) provider that hides the plumbing — until your bills spike or you hit architectural walls — or you can piece together an enterprise-grade stack from scratch.</p><p>For my latest project, <strong>Snapgram</strong>, I wanted to design a production-ready, highly scalable, and cost-efficient architecture without sacrificing developer experience or performance.</p><p>You can explore the live application here: <a href="https://snapgram.samuelkapansa.dev/">https://snapgram.samuelkapansa.dev</a></p><p>And review the complete source code on GitHub: <a href="https://github.com/kapansa/snapgram">https://github.com/kapansa/snapgram</a></p><p>In this article, I’ll walk through the exact <strong>Modern Developer Stack</strong> I used — <strong>Next.js, Neon (PostgreSQL), Prisma ORM, Cloudflare R2, and Better Auth</strong> — why I chose it, how the pieces fit together, and code snippets from the implementation.</p><h3>1. The Architecture Blueprint</h3><p>Instead of relying on monolithic SaaS platforms, this stack decouples database management, authentication, object storage, and frontend rendering while keeping everything optimized for serverless and edge environments.</p><pre>┌────────────────────────────────────────────────────────┐<br>│               Next.js App Router (Frontend)            │<br>└───────┬────────────────────────┬───────────────────┬───┘<br>        │                        │                   │<br>        ▼                        ▼                   ▼<br>┌──────────────┐         ┌──────────────┐    ┌──────────────┐<br>│  Better Auth │         │  Prisma ORM  │    │Cloudflare R2 │<br>│ (Auth Engine)│         │(Postgres DB) │    │ (S3 Storage) │<br>└───────┬──────┘         └──────┬───────┘    └──────────────┘<br>        │                       │<br>        └───────────┬───────────┘<br>                    ▼<br>          ┌───────────────────┐<br>          │   Neon Postgres   │<br>          └───────────────────┘</pre><ul><li><strong>Frontend &amp; SSR:</strong> Next.js App Router for server-side rendering, API routes, and lightning-fast page transitions.</li><li><strong>Database &amp; ORM:</strong> Neon (Serverless PostgreSQL) paired with Prisma ORM for type-safe database queries and migrations.</li><li><strong>Authentication:</strong> Better Auth for secure, self-hosted session and credential management.</li><li><strong>Cloud Storage:</strong> Cloudflare R2 for storing high-resolution image uploads with zero egress fees.</li></ul><h3>2. Setting Up the Database with Neon &amp; Prisma</h3><p>PostgreSQL is the gold standard for relational data. However, traditional database hosting can be tedious to scale and expensive to leave running idle. <strong>Neon</strong> solves this by providing serverless PostgreSQL that scales to zero when not in use, making it ideal for dev, staging, and production environments.</p><h3>Schema Design (prisma/schema.prisma)</h3><p>Here is a look at the core data models handling users, posts, and relations:</p><pre>datasource db {<br>  provider = &quot;postgresql&quot;<br>  url      = env(&quot;DATABASE_URL&quot;)<br>}<br><br>generator client {<br>  provider = &quot;prisma-client-js&quot;<br>}<br><br>model User {<br>  id            String    @id @default(cuid())<br>  name          String?<br>  email         String    @unique<br>  image         String?<br>  posts         Post[]<br>  createdAt     DateTime  @default(now())<br>  updatedAt     DateTime  @updatedAt<br>}<br><br>model Post {<br>  id          String   @id @default(cuid())<br>  caption     String<br>  imageUrl    String<br>  createdAt   DateTime @default(now())<br>  updatedAt   DateTime @updatedAt<br>  userId      String<br>  user        User     @relation(fields: [userId], references: [id], onDelete: Cascade)<br>}</pre><h3>Prisma Client Singleton (src/lib/db.js)</h3><p>To prevent exhausting database connections during Next.js hot-reloading in development, we instantiate a singleton Prisma client:</p><pre>import { PrismaClient } from &#39;@prisma/client&#39;;<br><br>const globalForPrisma = globalThis;<br><br>export const prisma = globalForPrisma.prisma || new PrismaClient();<br><br>if (process.env.NODE_ENV !== &#39;production&#39;) {<br>  globalForPrisma.prisma = prisma;<br>}</pre><h3>3. Secure Authentication with Better Auth</h3><p>Many authentication providers charge based on Monthly Active Users (MAU), leading to unpredictable bills as an app grows. <strong>Better Auth</strong> is an open-source, framework-agnostic authentication library that lives directly inside your codebase and stores users right in your own database.</p><p>Here is how authentication is initialized in the project:</p><pre>import { betterAuth } from &quot;better-auth&quot;;<br>import { prismaAdapter } from &quot;better-auth/adapters/prisma&quot;;<br>import { prisma } from &quot;@/lib/db&quot;;<br><br>export const auth = betterAuth({<br>  database: prismaAdapter(prisma, {<br>    provider: &quot;postgresql&quot;,<br>  }),<br>  emailAndPassword: {<br>    enabled: true,<br>  },<br>  socialProviders: {<br>    // Easily hook up Google, GitHub, etc. here<br>  },<br>});</pre><p>Because it hooks directly into Prisma, user sessions, accounts, and verifications are cleanly managed inside your PostgreSQL tables without external SaaS dependencies.</p><h3>4. Zero-Egress Media Handling with Cloudflare R2</h3><p>For a photo-sharing application like Snapgram, storing images directly on a web server is a bottleneck. Traditional cloud buckets can also rack up massive bills due to data egress fees (charges when users download images).</p><p><strong>Cloudflare R2</strong> provides S3-compatible object storage with <strong>zero egress fees</strong>.</p><h3>Generating Presigned Upload URLs</h3><p>To keep our Next.js server lightweight, the client requests a secure upload URL from the backend, then uploads media directly to Cloudflare R2:</p><pre>import { S3Client, PutObjectCommand } from &quot;@aws-sdk/client-s3&quot;;<br>import { getSignedUrl } from &quot;@aws-sdk/s3-request-presigner&quot;;<br><br>const s3Client = new S3Client({<br>  region: &quot;auto&quot;,<br>  endpoint: `https://${process.env.CLOUDFLARE_ACCOUNT_ID}.r2.cloudflarestorage.com`,<br>  credentials: {<br>    accessKeyId: process.env.R2_ACCESS_KEY_ID,<br>    secretAccessKey: process.env.R2_SECRET_ACCESS_KEY,<br>  },<br>});<br><br>export async function generateUploadUrl(fileName, fileType) {<br>  const command = new PutObjectCommand({<br>    Bucket: process.env.R2_BUCKET_NAME,<br>    Key: `uploads/${Date.now()}-${fileName}`,<br>    ContentType: fileType,<br>  });<br><br>  const presignedUrl = await getSignedUrl(s3Client, command, { expiresIn: 3600 });<br>  return presignedUrl;<br>}</pre><h3>5. Bringing It Together in Next.js</h3><p>With our database, auth, and storage layers secured, building features like post creation becomes clean and type-safe. Here is an example of a server action handling a new post submission:</p><pre>&#39;use server&#39;;<br><br>import { prisma } from &#39;@/lib/db&#39;;<br>import { auth } from &#39;@/lib/auth&#39;;<br>import { headers } from &#39;next/headers&#39;;<br>import { revalidatePath } from &#39;next/cache&#39;;<br><br>export async function createPost(formData) {<br>  const session = await auth.api.getSession({<br>    headers: await headers(),<br>  });<br><br>  if (!session) {<br>    throw new Error(&#39;Unauthorized&#39;);<br>  }<br><br>  const caption = formData.get(&#39;caption&#39;);<br>  const imageUrl = formData.get(&#39;imageUrl&#39;);<br><br>  const newPost = await prisma.post.create({<br>    data: {<br>      caption,<br>      imageUrl,<br>      userId: session.user.id,<br>    },<br>  });<br><br>  revalidatePath(&#39;/&#39;);<br>  return { success: true, post: newPost };<br>}</pre><h3>Final Thoughts</h3><p>Building Snapgram with <strong>Next.js, Neon, Prisma, Cloudflare R2, and Better Auth</strong> proved that you don’t need a bloated BaaS ecosystem to ship a fast, feature-complete application.</p><ul><li>You get <strong>total data ownership</strong> via PostgreSQL and Prisma.</li><li>You get <strong>predictable, near-zero infrastructure costs</strong> with Neon’s serverless scaling and Cloudflare R2’s zero egress fees.</li><li>You get <strong>full control over authentication</strong> without per-user pricing tiers.</li></ul><p>Be sure to check out the live demo at <a href="https://snapgram.samuelkapansa.dev/">https://snapgram.samuelkapansa.dev</a> and dig into the repository at <a href="https://github.com/kapansa/snapgram">github.com/kapansa/snapgram</a> to see the full implementation in action!</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=bbcc83a9975a" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Building Seamless Mobile Money Payments in Next.js with Lenco API (Step-by-Step Guide)]]></title>
            <link>https://kapansa.medium.com/building-seamless-mobile-money-payments-in-next-js-with-lenco-api-step-by-step-guide-3cae0de1c2a5?source=rss-76d445c1f3af------2</link>
            <guid isPermaLink="false">https://medium.com/p/3cae0de1c2a5</guid>
            <category><![CDATA[mobile-money-payments]]></category>
            <category><![CDATA[api-route]]></category>
            <category><![CDATA[nextjs-app-router]]></category>
            <category><![CDATA[nextjs14]]></category>
            <dc:creator><![CDATA[Samuel Kapansa]]></dc:creator>
            <pubDate>Wed, 21 Oct 2026 00:22:25 GMT</pubDate>
            <atom:updated>2026-10-21T00:22:25.969Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*kg68vLDfqmNKpOwPKXgFaQ.png" /><figcaption>Cover image: AI-generated illustration.</figcaption></figure><p>Integrating mobile money payments is an essential requirement for building localized web applications across many markets. Users expect quick, secure, and direct carrier billing right from their devices.</p><p>In this tutorial, we will walk through how to build mobile money collections using <strong>Lenco</strong> inside a <strong>Next.js (App Router)</strong> application. We will separate our backend architecture into two distinct API endpoints: <strong>one to initiate the payment</strong> and <strong>another to check the transaction status</strong>. Finally, we’ll build a frontend form to tie them together.</p><h3>Prerequisites</h3><p>Before we dive into the code, make sure you have:</p><ol><li>A <strong>Next.js</strong> project set up (using the App Router).</li><li>A <strong>Lenco Account</strong> with a valid Secret API Key.</li><li>Installed packages for HTTP requests and unique identifiers:</li></ol><pre>npm install axios uuid</pre><h3>Step 1: Configure Your Environment Variables</h3><p>Secure your Lenco Secret Key by storing it in your .env.local file at the root of your project:</p><pre>LENCO_SEC_KEY=your_lenco_secret_key_here</pre><h3>Step 2: Create the Initiate Payment API Route</h3><p>First, let’s create an endpoint responsible strictly for triggering the mobile money prompt on the user’s phone.</p><p>Create a file at app/api/pay/initiate/route.js:</p><pre>import { NextResponse } from &quot;next/server&quot;;<br>import axios from &quot;axios&quot;;<br>import { v4 as uuidv4 } from &quot;uuid&quot;;<br><br>const INIT_URL = &quot;https://api.lenco.co/access/v2/collections/mobile-money&quot;;<br><br>export async function POST(request) {<br>  try {<br>    const { phone, network, amount } = await request.json();<br><br>    const FINAL_API_KEY = process.env.LENCO_SEC_KEY;<br><br>    if (!FINAL_API_KEY) {<br>      return NextResponse.json(<br>        { status: &quot;ERROR&quot;, message: &quot;Lenco API Key is required.&quot; },<br>        { status: 401 }<br>      );<br>    }<br><br>    if (!amount || !phone || !network) {<br>      return NextResponse.json(<br>        { status: &quot;ERROR&quot;, message: &quot;Missing phone, network, or amount.&quot; },<br>        { status: 400 }<br>      );<br>    }<br><br>    const transactionRef = uuidv4();<br>    const config = { headers: { Authorization: `Bearer ${FINAL_API_KEY}` } };<br><br>    const initRes = await axios.post(<br>      INIT_URL,<br>      {<br>        operator: network,<br>        phone,<br>        amount,<br>        reference: transactionRef,<br>        bearer: &quot;merchant&quot;,<br>        country: &quot;zm&quot;,<br>      },<br>      config<br>    );<br><br>    return NextResponse.json({<br>      status: &quot;SUCCESS&quot;,<br>      reference: transactionRef,<br>      data: initRes.data.data,<br>    });<br>  } catch (error) {<br>    return NextResponse.json(<br>      {<br>        status: &quot;ERROR&quot;,<br>        message: error.response?.data?.message || error.message,<br>      },<br>      { status: 500 }<br>    );<br>  }<br>}</pre><h3>Step 3: Create the Status Verification API Route</h3><p>Next, create an endpoint to check the live status of the transaction using its reference.</p><p>Create a file at app/api/pay/status/[reference]/route.js:</p><pre>import { NextResponse } from &quot;next/server&quot;;<br>import axios from &quot;axios&quot;;<br><br>const STATUS_URL = &quot;https://api.lenco.co/access/v2/collections/status&quot;;<br><br>export async function GET(request, { params }) {<br>  try {<br>    const { reference } = params;<br>    const apiKey = process.env.LENCO_SEC_KEY;<br><br>    if (!apiKey) {<br>      return NextResponse.json(<br>        { status: &quot;ERROR&quot;, message: &quot;Lenco API Key is missing.&quot; },<br>        { status: 401 }<br>      );<br>    }<br><br>    const config = { headers: { Authorization: `Bearer ${apiKey}` } };<br><br>    const verifyRes = await axios.get(`${STATUS_URL}/${reference}`, config);<br>    const lencoData = verifyRes.data.data;<br>    const finalStatus = lencoData.status.toUpperCase();<br><br>    return NextResponse.json({<br>      status: finalStatus,<br>      message:<br>        finalStatus === &quot;SUCCESSFUL&quot;<br>          ? &quot;Payment successful.&quot;<br>          : finalStatus === &quot;FAILED&quot;<br>          ? lencoData.reasonForFailure || &quot;Payment failed.&quot;<br>          : &quot;Payment is still pending...&quot;,<br>      data: {<br>        reference: reference,<br>        amount: lencoData.amount,<br>        phone: lencoData.mobileMoneyDetails?.phone,<br>        accountName: lencoData.mobileMoneyDetails?.accountName,<br>        operator: lencoData.mobileMoneyDetails?.operator,<br>      },<br>    });<br>  } catch (error) {<br>    return NextResponse.json(<br>      {<br>        status: &quot;ERROR&quot;,<br>        message: error.response?.data?.message || error.message,<br>      },<br>      { status: 500 }<br>    );<br>  }<br>}</pre><h3>Step 4: Build the Frontend Checkout Component</h3><p>Now let’s build a React component that triggers the payment and polls our status API route iteratively until the payment completes or times out.</p><p>Create a file at components/CheckoutForm.jsx:</p><pre>&quot;use client&quot;;<br><br>import { useState } from &quot;react&quot;;<br><br>const delay = (ms) =&gt; new Promise((resolve) =&gt; setTimeout(resolve, ms));<br><br>export default function CheckoutForm() {<br>  const [phone, setPhone] = useState(&quot;&quot;);<br>  const [network, setNetwork] = useState(&quot;AIRTEL&quot;);<br>  const [amount, setAmount] = useState(&quot;&quot;);<br>  const [loading, setLoading] = useState(false);<br>  const [statusMessage, setStatusMessage] = useState(&quot;&quot;);<br><br>  const handlePayment = async (e) =&gt; {<br>    e.preventDefault();<br>    setLoading(true);<br>    setStatusMessage(&quot;Initiating payment... Please check your phone.&quot;);<br><br>    try {<br>      // 1. Trigger Payment Initiation<br>      const initRes = await fetch(&quot;/api/pay/initiate&quot;, {<br>        method: &quot;POST&quot;,<br>        headers: { &quot;Content-Type&quot;: &quot;application/json&quot; },<br>        body: JSON.stringify({ phone, network, amount }),<br>      });<br><br>      const initData = await initRes.json();<br><br>      if (!initRes.ok) throw new Error(initData.message || &quot;Failed to initiate&quot;);<br><br>      const reference = initData.reference;<br>      setStatusMessage(&quot;Prompt sent! Authorize payment on your phone...&quot;);<br><br>      // 2. Poll Status Endpoint<br>      let attempts = 0;<br>      let isCompleted = false;<br><br>      while (attempts &lt; 10 &amp;&amp; !isCompleted) {<br>        await delay(5000);<br>        const statusRes = await fetch(`/api/pay/status/${reference}`);<br>        const statusData = await statusRes.json();<br><br>        if (statusData.status === &quot;SUCCESSFUL&quot;) {<br>          setStatusMessage(&quot;✅ Payment Successful!&quot;);<br>          isCompleted = true;<br>        } else if (statusData.status === &quot;FAILED&quot;) {<br>          setStatusMessage(`❌ Payment Failed: ${statusData.message}`);<br>          isCompleted = true;<br>        }<br>        attempts++;<br>      }<br><br>      if (!isCompleted) {<br>        setStatusMessage(&quot;⏳ Payment timed out. Please check your transaction history.&quot;);<br>      }<br>    } catch (err) {<br>      setStatusMessage(`❌ Error: ${err.message}`);<br>    } finally {<br>      setLoading(false);<br>    }<br>  };<br><br>  return (<br>    &lt;div className=&quot;max-w-md mx-auto p-6 bg-white rounded-xl shadow-md border border-gray-100&quot;&gt;<br>      &lt;h2 className=&quot;text-xl font-bold mb-4 text-gray-800&quot;&gt;Mobile Money Checkout&lt;/h2&gt;<br>      &lt;form onSubmit={handlePayment} className=&quot;space-y-4&quot;&gt;<br>        &lt;div&gt;<br>          &lt;label className=&quot;block text-sm font-medium text-gray-700&quot;&gt;Phone Number&lt;/label&gt;<br>          &lt;input<br>            type=&quot;text&quot;<br>            placeholder=&quot;097XXXXXXX&quot;<br>            value={phone}<br>            onChange={(e) =&gt; setPhone(e.target.value)}<br>            required<br>            className=&quot;w-full mt-1 p-2 border rounded-lg focus:ring-2 focus:ring-blue-500 outline-none&quot;<br>          /&gt;<br>        &lt;/div&gt;<br>        &lt;div&gt;<br>          &lt;label className=&quot;block text-sm font-medium text-gray-700&quot;&gt;Network Provider&lt;/label&gt;<br>          &lt;select<br>            value={network}<br>            onChange={(e) =&gt; setNetwork(e.target.value)}<br>            className=&quot;w-full mt-1 p-2 border rounded-lg focus:ring-2 focus:ring-blue-500 outline-none&quot;<br>          &gt;<br>            &lt;option value=&quot;AIRTEL&quot;&gt;Airtel&lt;/option&gt;<br>            &lt;option value=&quot;MTN&quot;&gt;MTN&lt;/option&gt;<br>            &lt;option value=&quot;ZAMTEL&quot;&gt;Zamtel&lt;/option&gt;<br>          &lt;/select&gt;<br>        &lt;/div&gt;<br>        &lt;div&gt;<br>          &lt;label className=&quot;block text-sm font-medium text-gray-700&quot;&gt;Amount (ZMW)&lt;/label&gt;<br>          &lt;input<br>            type=&quot;number&quot;<br>            placeholder=&quot;100&quot;<br>            value={amount}<br>            onChange={(e) =&gt; setAmount(e.target.value)}<br>            required<br>            className=&quot;w-full mt-1 p-2 border rounded-lg focus:ring-2 focus:ring-blue-500 outline-none&quot;<br>          /&gt;<br>        &lt;/div&gt;<br>        &lt;button<br>          type=&quot;submit&quot;<br>          disabled={loading}<br>          className=&quot;w-full py-2 bg-blue-600 text-white font-semibold rounded-lg hover:bg-blue-700 transition disabled:bg-gray-400&quot;<br>        &gt;<br>          {loading ? &quot;Processing...&quot; : &quot;Pay Now&quot;}<br>        &lt;/button&gt;<br>      &lt;/form&gt;<br>      {statusMessage &amp;&amp; (<br>        &lt;p className=&quot;mt-4 text-center text-sm font-medium text-gray-600&quot;&gt;{statusMessage}&lt;/p&gt;<br>      )}<br>    &lt;/div&gt;<br>  );<br>}</pre><h3>Conclusion</h3><p>By splitting your backend logic into decoupled API routes (/initiate and /status), your application code stays clean, testable, and maintainable. Coupled with our Next.js frontend polling loop, users get instant visual feedback as soon as they authorize the prompt on their phone.</p><p>Happy coding! 🚀</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=3cae0de1c2a5" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Building Real-Time Order & Delivery Notifications with React Native Expo, Appwrite Functions, and…]]></title>
            <link>https://kapansa.medium.com/building-real-time-order-delivery-notifications-with-react-native-expo-appwrite-functions-and-9bd064ae7521?source=rss-76d445c1f3af------2</link>
            <guid isPermaLink="false">https://medium.com/p/9bd064ae7521</guid>
            <category><![CDATA[appwrite]]></category>
            <category><![CDATA[expo-notifications]]></category>
            <category><![CDATA[firebasecloudmessaging]]></category>
            <category><![CDATA[expo-react-native]]></category>
            <category><![CDATA[realtime-notification]]></category>
            <dc:creator><![CDATA[Samuel Kapansa]]></dc:creator>
            <pubDate>Tue, 20 Oct 2026 12:10:32 GMT</pubDate>
            <atom:updated>2026-10-20T12:10:32.379Z</atom:updated>
            <content:encoded><![CDATA[<h3>Building Real-Time Order &amp; Delivery Notifications with React Native Expo, Appwrite Functions, and FCM V1</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*jLJZjYlMSBUw3Rly8NST1A.png" /><figcaption>Cover image: AI-generated illustration.</figcaption></figure><p>Implementing real-time push notifications in a modern mobile application often feels like stitching together multiple complex services. If you are building a full-stack mobile application using <strong>React Native Expo</strong> for the frontend and <strong>Appwrite</strong> for the backend, setting up automated event-driven notifications — such as alerting customers when their delivery order status changes — requires connecting client-side token registration, EAS credentials, and serverless webhooks.</p><p>This guide walks through the exact blueprint to set up automated, server-driven push notifications from scratch using an e-commerce order and delivery workflow as a practical example.</p><h3>Prerequisites &amp; Tech Stack</h3><ul><li><strong>Frontend:</strong> React Native with Expo (SDK 51+), expo-notifications, expo-device</li><li><strong>Backend:</strong> Appwrite Cloud (Functions &amp; Databases)</li><li><strong>Push Service:</strong> Expo Push API backed by Firebase Cloud Messaging (FCM V1) via EAS</li></ul><h3>Step 1: Initialize the Local Functions Directory</h3><p>If you are managing your backend logic via code, you’ll want a dedicated functions directory in your project root using the Appwrite CLI.</p><ol><li>Install and log into the Appwrite CLI in your terminal:</li></ol><pre>appwrite login</pre><p>2. Initialize your project functions folder:</p><pre>appwrite init function</pre><ul><li><em>Name your function:</em> send-push-notification</li><li><em>Select runtime:</em> Node.js (latest version)</li></ul><p>This scaffolds a clean folder structure inside your project workspace:</p><pre>your-project-root/<br>├── functions/<br>│   └── send-push-notification/<br>│       ├── src/<br>│       │   └── main.js<br>│       └── package.json<br>├── src/ (Frontend code)<br>└── appwrite.json</pre><p>Inside your function’s package.json, make sure you have the Appwrite SDK dependency installed:</p><pre>{<br>  &quot;dependencies&quot;: {<br>    &quot;node-appwrite&quot;: &quot;^13.0.0&quot;<br>  }<br>}</pre><h3>Step 2: Frontend Token Registration &amp; Permissions</h3><p>Configure your Expo app to request notification permissions, obtain a secure Expo push token, and save it directly to the user’s profile document inside your Appwrite database whenever they log in.</p><p>Create src/api/notifications.js:</p><pre>import * as Notifications from &quot;expo-notifications&quot;;<br>import * as Device from &quot;expo-device&quot;;<br>import Constants from &quot;expo-constants&quot;;<br>import { databases } from &quot;./appwrite&quot;;<br><br>const DATABASE_ID = process.env.EXPO_PUBLIC_APPWRITE_DATABASE_ID;<br>const USERS_COLLECTION_ID = process.env.EXPO_PUBLIC_APPWRITE_USERS_COLLECTION_ID;<br><br>Notifications.setNotificationHandler({<br>  handleNotification: async () =&gt; ({<br>    shouldShowBanner: true, <br>    shouldShowList: true,   <br>    shouldPlaySound: true,<br>    shouldSetBadge: false,<br>  }),<br>});<br><br>export async function registerForPushNotificationsAsync(userId) {<br>  if (!Device.isDevice) {<br>    console.log(&quot;Must use physical device for Push Notifications&quot;);<br>    return null;<br>  }<br><br>  const { status: existingStatus } = await Notifications.getPermissionsAsync();<br>  let finalStatus = existingStatus;<br><br>  if (existingStatus !== &quot;granted&quot;) {<br>    const { status } = await Notifications.requestPermissionsAsync();<br>    finalStatus = status;<br>  }<br><br>  if (finalStatus !== &quot;granted&quot;) {<br>    console.log(&quot;Permission not granted to get push token!&quot;);<br>    return null;<br>  }<br><br>  try {<br>    const projectId =<br>      Constants?.expoConfig?.extra?.eas?.projectId ??<br>      Constants?.easConfig?.projectId;<br><br>    if (!projectId) {<br>      console.log(&quot;Project ID not found in app config&quot;);<br>      return null;<br>    }<br><br>    const tokenData = await Notifications.getExpoPushTokenAsync({ projectId });<br>    const pushToken = tokenData.data;<br><br>    if (userId &amp;&amp; DATABASE_ID &amp;&amp; USERS_COLLECTION_ID) {<br>      await databases.updateDocument(DATABASE_ID, USERS_COLLECTION_ID, userId, {<br>        pushToken: pushToken,<br>      });<br>    }<br><br>    return pushToken;<br>  } catch (error) {<br>    console.error(&quot;Error fetching/saving push token:&quot;, error);<br>    return null;<br>  }<br>}</pre><p>Trigger this registration function inside your global context (AppContext.jsx) immediately after a user successfully authenticates:</p><pre>if (currentUser &amp;&amp; currentUser.$id) {<br>  registerForPushNotificationsAsync(currentUser.$id).catch((err) =&gt;<br>    console.log(&quot;Push token registration error:&quot;, err)<br>  );<br>}</pre><h3>Step 3: Configure app.json for Android &amp; Notifications</h3><p>To ensure Android can properly parse Firebase configuration and handle notifications during builds, configure your app.json file to include the required Google Services file reference, the notifications plugin, and your EAS project ID:</p><pre>{<br>  &quot;expo&quot;: {<br>    &quot;name&quot;: &quot;My App&quot;,<br>    &quot;slug&quot;: &quot;my-app&quot;,<br>    &quot;version&quot;: &quot;1.0.0&quot;,<br>    &quot;android&quot;: {<br>      &quot;package&quot;: &quot;com.your.app&quot;,<br>      &quot;googleServicesFile&quot;: &quot;./google-services.json&quot;<br>    },<br>    &quot;plugins&quot;: [<br>      &quot;expo-notifications&quot;<br>    ],<br>    &quot;extra&quot;: {<br>      &quot;eas&quot;: {<br>        &quot;projectId&quot;: &quot;your-eas-project-id&quot;<br>      }<br>    }<br>  }<br>}</pre><h3>Step 4: Link FCM V1 Credentials via EAS</h3><p>Android requires an official Firebase Cloud Messaging (FCM V1) Google Service Account JSON key linked to your EAS project.</p><ol><li>Generate a Service Account JSON key from your Firebase Console.</li><li>Place the file in your project root directory (e.g., google-services.json).</li><li>Run the EAS credentials manager in your terminal:</li></ol><pre>eas credentials</pre><p>4. Select <strong>Android</strong> → <strong>Manage your Google Service Account Key for Push Notifications (FCM V1)</strong> → <strong>Upload a Google Service Account Key</strong>, and point it to ./google-services.json.</p><p>5. Ensure the uploaded key is assigned to your Android app identifier.</p><h3>Step 5: Write the Appwrite Serverless Function Code</h3><p>Inside your local functions/send-push-notification/src/main.js file, write the serverless handler that listens for database updates, extracts the user ID, and posts the payload to Expo&#39;s push endpoint:</p><pre>import { Client, Databases } from &#39;node-appwrite&#39;;<br><br>export default async ({ req, res, log, error }) =&gt; {<br>  const client = new Client()<br>    .setEndpoint(process.env.APPWRITE_FUNCTION_API_ENDPOINT)<br>    .setProject(process.env.APPWRITE_FUNCTION_PROJECT_ID)<br>    .setKey(req.headers[&#39;x-appwrite-key&#39;] ?? &#39;&#39;);<br><br>  const databases = new Databases(client);<br><br>  const DATABASE_ID = process.env.EXPO_PUBLIC_APPWRITE_DATABASE_ID || &#39;your_database_id&#39;;<br>  const USERS_COLLECTION_ID = process.env.EXPO_PUBLIC_APPWRITE_USERS_COLLECTION_ID || &#39;users&#39;;<br>  const ORDERS_COLLECTION_ID = process.env.EXPO_PUBLIC_APPWRITE_ORDERS_COLLECTION_ID || &#39;orders&#39;;<br><br>  try {<br>    const event = req.headers[&#39;x-appwrite-event&#39;] || &#39;&#39;;<br>    let payload = {};<br>    <br>    try {<br>      payload = JSON.parse(req.payload || &#39;{}&#39;);<br>    } catch (e) {<br>      log(&#39;Could not parse req.payload as JSON&#39;);<br>    }<br><br>    log(`Event triggered: ${event}`);<br><br>    const sendExpoNotification = async (expoPushToken, title, body, data = {}) =&gt; {<br>      if (!expoPushToken || !expoPushToken.startsWith(&#39;ExponentPushToken[&#39;)) {<br>        log(`Invalid push token: ${expoPushToken}`);<br>        return;<br>      }<br><br>      const message = {<br>        to: expoPushToken,<br>        sound: &#39;default&#39;,<br>        title: title,<br>        body: body,<br>        data: data,<br>      };<br><br>      const response = await fetch(&#39;https://exp.host/--/api/v2/push/send&#39;, {<br>        method: &#39;POST&#39;,<br>        headers: {<br>          Accept: &#39;application/json&#39;,<br>          &#39;Accept-encoding&#39;: &#39;gzip, deflate&#39;,<br>          &#39;Content-Type&#39;: &#39;application/json&#39;,<br>        },<br>        body: JSON.stringify(message),<br>      });<br><br>      const result = await response.json();<br>      log(`Notification sent result: ${JSON.stringify(result)}`);<br>    };<br><br>    if (event.includes(&#39;.update&#39;)) {<br>      let userId = payload.userId;<br>      let status = payload.status;<br>      let orderId = payload.$id;<br><br>      // Fallback: If payload lacks properties, fetch document directly using ID from event string<br>      if (!userId &amp;&amp; event.includes(&#39;.rows.&#39;)) {<br>        const parts = event.split(&#39;.&#39;);<br>        const rowIdIndex = parts.indexOf(&#39;rows&#39;) + 1;<br>        if (rowIdIndex &gt; 0 &amp;&amp; parts[rowIdIndex]) {<br>          const documentId = parts[rowIdIndex];<br>          const orderDoc = await databases.getDocument(<br>            DATABASE_ID,<br>            ORDERS_COLLECTION_ID,<br>            documentId<br>          );<br>          userId = orderDoc.userId;<br>          status = orderDoc.status;<br>          orderId = orderDoc.$id;<br>        }<br>      }<br><br>      if (userId) {<br>        const userDoc = await databases.getDocument(<br>          DATABASE_ID,<br>          USERS_COLLECTION_ID,<br>          userId<br>        );<br><br>        if (userDoc &amp;&amp; userDoc.pushToken) {<br>          await sendExpoNotification(<br>            userDoc.pushToken,<br>            &#39;Order Status Update 📦&#39;,<br>            `Your order #${orderId.slice(-6)} is now: ${status}`<br>          );<br>        }<br>      }<br>    }<br><br>    return res.json({ success: true });<br>  } catch (err) {<br>    error(`Function error: ${err.message}`);<br>    return res.json({ success: false, error: err.message }, 500);<br>  }<br>};</pre><h3>Step 6: Configure Appwrite Console Settings &amp; Deployment</h3><ol><li><strong>Event Triggers:</strong> Go to your Appwrite Console → <strong>Functions</strong> → <strong>Settings</strong> → <strong>Events</strong>, and add the row-level update wildcard event for your collection:</li></ol><ul><li>databases.&lt;DATABASE_ID&gt;.tables.&lt;ORDERS_COLLECTION_ID&gt;.rows.*.update</li></ul><p>2. <strong>Scopes:</strong> Ensure your function permissions include <strong>databases.read</strong> so it can successfully query user and order documents.</p><p>3. <strong>Environment Variables:</strong> Bind your database and collection IDs as environment variables in the function settings.</p><p>4.<strong> Deploy:</strong> Push your local function code live using the Appwrite CLI:</p><pre>appwrite push functions</pre><h3>Conclusion</h3><p>By maintaining a clean local functions/ directory structure, connecting Expo&#39;s push token registration, and leveraging Appwrite&#39;s event-driven serverless webhooks with EAS FCM V1 authentication, you get a robust, fully decoupled notification pipeline ready for any production app!</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=9bd064ae7521" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[5 BEST HTML PRACTICES]]></title>
            <link>https://kapansa.medium.com/5-best-html-practices-ce1527dc20f5?source=rss-76d445c1f3af------2</link>
            <guid isPermaLink="false">https://medium.com/p/ce1527dc20f5</guid>
            <category><![CDATA[html5]]></category>
            <category><![CDATA[best-practices]]></category>
            <category><![CDATA[seo]]></category>
            <category><![CDATA[debugging]]></category>
            <dc:creator><![CDATA[Samuel Kapansa]]></dc:creator>
            <pubDate>Sat, 20 May 2023 18:41:41 GMT</pubDate>
            <atom:updated>2023-05-20T18:41:41.035Z</atom:updated>
            <content:encoded><![CDATA[<h4>Techniques that help with on-page SEO (Search Engine Optimization)</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*WuYkCZCgnwYplWjT" /><figcaption>Photo by <a href="https://unsplash.com/@jacksonsophat?utm_source=medium&amp;utm_medium=referral">Jackson Sophat</a> on <a href="https://unsplash.com/?utm_source=medium&amp;utm_medium=referral">Unsplash</a></figcaption></figure><blockquote>The only way to learn how to code is to code. There are no two ways about it.</blockquote><p>Over the past few years that have been learning and building web-based applications, it has only been a focus of writing code, testing if it works and deploying it to the web. But, have come to learn that, that’s just a part of what it takes to build scalable, user-friendly and accessible products, that meet customer needs and gets the business running and thriving on a long run.</p><p>One major aspect of Web Development that have come to learn and utilize in designing and building websites for businesses is <strong>SEO (Search Engine Optimization)</strong>, which is the process used to optimize a website’s technical configuration, content relevance and link popularity so its pages can become easily findable, more relevant and popular towards user search queries, and as a consequence, search engines rank them better. To achieve this, one of the best places to start from is in how we write and implement our HTML.</p><p>Its sad though how most Web Developers and newbies in the industry look down on it and walk through it so quick in wanting to get done with it so they can get to the “shine” tech stack and programming languages. But, its not too late to rewind back and learn a few practices that can help improve your SEO. So, in this article I will share 5 Best HTML practices that can help with SEO.</p><h4>1. Use proper Indentation</h4><p>Aside from the code looking nice and all, writing HTML code that is properly indented will help people easily navigate through your code to either update or fix bugs and issues that might arise in future.</p><p>In some cases, an addition of leaving comments in your code really helps other developers understand what your complex code does and be able to easily work through it.</p><pre>&lt;body&gt;<br><br>      &lt;div class=&quot;heading&quot;&gt;<br>            &lt;h1&gt;Use proper Indentition&lt;/h1&gt;<br>      &lt;/div&gt;<br><br>      &lt;div class=&quot;extensions&quot;&gt;<br>            &lt;h3&gt;Prettie&lt;/h3&gt;<br>            &lt;div&gt;<br>                  &lt;a href=&quot;&quot;&gt;Layout&lt;/a&gt;<br>                  &lt;a href=&quot;&quot;&gt;Alignment&lt;/a&gt;<br>                  &lt;a href=&quot;&quot;&gt;Indent&lt;/a&gt;<br>            &lt;/div&gt;<br>      &lt;/div&gt;<br><br>      &lt;div class=&quot;art-gallery&quot;&gt;<br>            &lt;img src=&quot;./images/img1.jpg&quot; alt=&quot;famous portrait&quot; width=&quot;300px&quot;&gt;<br>            &lt;img src=&quot;./images/img2.jpg&quot; alt=&quot;famous portrait&quot; width=&quot;300px&quot;&gt;<br>            &lt;img src=&quot;./images/img3.jpg&quot; alt=&quot;famous portrait&quot; width=&quot;300px&quot;&gt;<br>      &lt;/div&gt;<br><br>&lt;/body&gt;</pre><h4>2. Follow a logical structure (Hierarchical manner)</h4><p>There are basically four steps (Crawling, Storing, Indexing and Ranking) that Search Engines use to have your websites appear when a user searches for information that relates to what your website is about. Now when it comes to the Crawling process, one thing that crawlers do when they get on your website is look at it in a Hierarchical manner. E.g. They look at something as simple as checking if you have used different heading (h1–h6) based on the different titles and subtitles on your page.</p><p>The mistake that a lot of Web developers make, especially newbies, is using h1 through out their website and then using CSS to change how those headings look to suit them being main titles and subtitles.</p><pre>&lt;body&gt;<br><br>      &lt;div class=&quot;heading-types&quot;&gt;<br>            &lt;h1&gt;Hierarchical manner&lt;/h1&gt;<br>      &lt;/div&gt;<br><br>      &lt;div class=&quot;extensions&quot;&gt;<br>            &lt;h2&gt;Prettie&lt;/h2&gt;<br>            &lt;div&gt;<br>                  &lt;h3&gt;Heading 3&lt;/h3&gt;<br>                  &lt;p&gt;Lorem ipsum dolor sit amet consectetur adipisicing elit. Nemo, minima doloremque similique sunt<br>                        nostrum vitae dicta tempora iure ut, aperiam eum voluptatem odio voluptates consequuntur<br>                        praesentium saepe minus blanditiis eius.&lt;/p&gt;<br>            &lt;/div&gt;<br>      &lt;/div&gt;<br><br>      &lt;div class=&quot;art-gallery&quot;&gt;<br>            &lt;h2&gt;Best Art Work&lt;/h2&gt;<br>            &lt;img src=&quot;./images/img1.jpg&quot; alt=&quot;famous portrait&quot; width=&quot;300px&quot;&gt;<br>            &lt;div class=&quot;lower-heading&quot;&gt;<br>                  &lt;h3&gt;Heading 3&lt;/h3&gt;<br>                  &lt;p&gt;Lorem ipsum dolor sit, amet consectetur adipisicing elit. Impedit, architecto rem vitae<br>                        necessitatibus laudantium dolores aliquid atque explicabo, eaque repellat eius ullam,<br>                        repellendus consectetur a est. Ut incidunt dolore voluptatibus.&lt;/p&gt;<br>            &lt;/div&gt;<br>      &lt;/div&gt;<br><br>&lt;/body&gt;</pre><h4>3. Use semantic Elements</h4><p>One of the best features that HTML5 brought on the table especially on the aspect of SEO are Semantic Elements, which put simply, are HTML elements that clearly describe their meaning in a human- and machine-readable way.</p><p>Article, header, section, aside and footer are just a few examples of Semantic elements. Using them on your website, makes the HTML more comprehensible by better defining the different sections and layout of web pages, which is important when it comes to the crawlers visiting your websites to gather your page content. Talking about content, make sure that you don’t repeat the same content on your different pages in wanting your website appear first due to keywords appearing frequent.</p><pre>&lt;body&gt;<br><br>      &lt;header class=&quot;heading-types&quot;&gt;<br>            &lt;h1&gt;Hierarchical manner&lt;/h1&gt;<br>      &lt;/header&gt;<br><br>      &lt;section class=&quot;extensions&quot;&gt;<br>            &lt;h2&gt;Prettie&lt;/h2&gt;<br>            &lt;div&gt;<br>                  &lt;h3&gt;Heading 3&lt;/h3&gt;<br>                  &lt;p&gt;Lorem ipsum dolor sit amet consectetur adipisicing elit. Nemo, minima doloremque similique sunt<br>                        nostrum vitae dicta tempora iure ut, aperiam eum voluptatem odio voluptates consequuntur<br>                        praesentium saepe minus blanditiis eius.&lt;/p&gt;<br>            &lt;/div&gt;<br>      &lt;/section&gt;<br><br>      &lt;footer&gt;<br>            &lt;p&gt;Copyright © 5 Best HTML Practices 2023&lt;/p&gt;<br>      &lt;/footer&gt;<br><br>&lt;/body&gt;</pre><h4>4. Optimize images and use “alt” attribute</h4><p>Every successful business always create a product having the user or consumer in mind. UX (User Experience), which is simplify how a product works or how a user interacts with your product, is one important element when it comes to creating a product for your customers. You don’t want to create a website that has a long loading time, making the user wait for your images to finish loading before they are able to view your products or services.</p><p>One of the best ways to optimize your images is reducing their sizes. Below is one good online platform that can help you reduce the sizes of your images while maintaining their quality. While this might be a huge problem for the user and how they interact with your site, the loading speed of your images on your page can also affect your SEO performance.</p><p><a href="https://www.befunky.com/create/resize-image/">Free Online Image Resizer | Resize Photos Easily</a></p><p>Adding the “alt” attribute to your image tags is also a great idea not only for the user but for SEO as well. When these different Search Engines like Google or Yandex are crawling through your website, content isn’t the only thing they look at. But, they also measure the overall performance of your page. Loading time being one of them and of course the use of the “alt” attribute.</p><h4>5. Test Your Website across different browsers and devices</h4><p>One of the biggest mistakes that Web Developers make is building a website from scratch to finish, testing and debugging it using only one browser and device and deploying the site once they are done with everything. Only to find out that, that video or audio element they added in their HTML while they were using for instance, Chrome, as their browser for testing isn’t showing for those using Internet Explorer. This isn’t something you want for yourself and your users.</p><p>So, to best avoid such issues, its very important to test your website with different browsers and on different devices to make sure that its properly working and doing what you need it to do and that its responsive across different devices.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*beWklYUv5CzIy62roGMCLQ.jpeg" /></figure><h4>Conclusion</h4><p>These are just but a few things you can do to best improve your On-Page SEO and as you write your HTML code from now on, keep these things in mind and not only are they going to improve the look of your code but its functionality as well.</p><p>Thank you so much for reading up to the very end. If you enjoyed this article don’t forget to give it a clap and feel free to leave a comment behind on what you think and do feel free to as well add to the list of things we can do to improve our best practices when it comes to writing HTML code.</p><p>Happy Coding!</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=ce1527dc20f5" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[I failed right into a trajectory that leads to where am going.]]></title>
            <link>https://kapansa.medium.com/i-failed-right-into-a-trajectory-that-leads-to-where-am-going-167fd5ebb4a8?source=rss-76d445c1f3af------2</link>
            <guid isPermaLink="false">https://medium.com/p/167fd5ebb4a8</guid>
            <category><![CDATA[sucess]]></category>
            <category><![CDATA[purpose]]></category>
            <category><![CDATA[hope]]></category>
            <category><![CDATA[second-chances]]></category>
            <category><![CDATA[failure]]></category>
            <dc:creator><![CDATA[Samuel Kapansa]]></dc:creator>
            <pubDate>Fri, 23 Sep 2022 05:52:29 GMT</pubDate>
            <atom:updated>2022-09-23T06:02:36.291Z</atom:updated>
            <content:encoded><![CDATA[<h4>What happens when you say, “Oh Lord use me!”</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*j4qeYsE4vT9_MJsNzDxjcg.jpeg" /><figcaption>Saint Petersburg, Russia</figcaption></figure><blockquote>One of the greatest moments that each day brings is going to bed at night truly fulfilled, knowing that you took a step forward, towards your dream.</blockquote><p>My goodness, Joseph had a great vision, so clear as the light of day, from the start to the finish line, it really gave him the zeal for life, living each day’s moment with a sense of purpose, knowing exactly where he was to be, standing as a man of authority, a great Leader, a wise council from whom the operation and running of an empire depended.</p><p>But, as we know it ladies and gentlemen, God does not use that which He has not tested. Even though he knew that Abraham loved him, He first had to test him using a son that Abraham so loved. Before subjecting the Messiah to a path that called forth the saving of humanity, God had to allow the temptation of Jesus in the desert, as a test for him, since God does not tempt. I assure you that if you once made a prayer to God saying, “Oh Lord use me”, you will eventually be tested in due time.</p><p>Had God shown Joseph what he had to go through to reach the place that He wanted him to be, I doubt if we would have ever read about the young man that was sold by his brothers, thrown into a pit and put in prison.</p><p>It was a moment I will never forget, a flight, that passed over the red sea and Indian Ocean, looking down on mother earth like an eagle in its flight. A journey that lead to friendships and growth, the speaking of a new tongue and an exposure that am still and will forever be grateful for.</p><p>But had God shown me that, it was only going to take a single piece of paper to take me back at the starting point, with nothing in my hands to show off for a time that had passed. I would have never made the friendships and connections that I now have. I would have never had this stubborn desire to say that Yes, we too can and will eventually create innovations beyond the scope of what we are today, that yes, we too can build technology that is in touch with human connection, systems to improve the wellbeing of our people, subways and transportations that will ease our lives.</p><p>Ladies and gentlemen at the very moment when life punched me in the mouth, I had so many options at hand, I would have given up on life and killed myself, I would have lost hope in the vision and the dreams that God had shown me, and the place He said he was taking me to, I would have said life is unfair and this just can’t happen to me, I would have been wondering up and about with no zeal for life and beaten up myself and lived each day thinking am a failure and don’t deserve any second chance.</p><p>BUT GOD,</p><p>In his wisdom having known that the journey He had put me on was a process and not an event, clearly assured me and said, “ WHEN you go through the fire, you shall not be burnt, WHEN you go through the water, you shall not drown, for I the Lord, God, Jehovah, that was with Jesus at the cross, with Abraham at the mountain and with Joseph in prison, will surely be with you”.</p><p>Ladies and gentlemen, I am here to tell you that your story is no different from mine nor that of Joseph. I have been raised and my comeback is stronger than ever before, the desire is just too stubborn, you can’t change my mind nor talk me out of it for I am on still on a trajectory to the destination that God had shown me.</p><p>So, don’t you dare give up on your dreams!</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=167fd5ebb4a8" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Career Capital ( Skill Set )]]></title>
            <link>https://kapansa.medium.com/career-capital-skill-set-7c80e02cda57?source=rss-76d445c1f3af------2</link>
            <guid isPermaLink="false">https://medium.com/p/7c80e02cda57</guid>
            <category><![CDATA[career-capital]]></category>
            <category><![CDATA[skills]]></category>
            <category><![CDATA[practice]]></category>
            <category><![CDATA[self-improvement]]></category>
            <dc:creator><![CDATA[Samuel Kapansa]]></dc:creator>
            <pubDate>Fri, 21 May 2021 17:36:42 GMT</pubDate>
            <atom:updated>2021-05-21T17:36:42.256Z</atom:updated>
            <content:encoded><![CDATA[<h4>What value are you offering?</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*fK63HM24u2oBQoCi" /><figcaption>Photo by <a href="https://unsplash.com/@_jadoca?utm_source=medium&amp;utm_medium=referral">Jade Scarlato</a> on <a href="https://unsplash.com/?utm_source=medium&amp;utm_medium=referral">Unsplash</a></figcaption></figure><blockquote>The problem is that a lot of people view talent as an inherent ability, that one has to naturally have and do well with, forgetting that it takes continuous and deliberate practice for great performance.</blockquote><p>In this content “Career capital” refers to the rare and valuable skills that one can offer or invest in a company, at a work place or in a business.</p><p>Many are the times that people focus only in finding the right job or starting a more profitable business, or creating a life changing product that people can use, some even put in all that they gat in just wanting to build a company or launch a startup, all in Hopes of creating the next “Facebook”, next “Google” or next “Amazon”, not knowing what problem they are trying to solve or what solutions they are even providing.</p><p>In as much passionate as we might be in building a profitable business or finding the right job, we can never thrive or provide long lasting solutions to our existing problems without the right CAREER CAPITAL ( SKILL SET ) put in place.</p><p>Building that right CAREER CAPITAL ( SKILL SET ) should be the first thing on our plate then the rest just comes easier. The truth is, you just need to get so good that they can’t ignore you any more. Have seen our very our youths here in Zambia that have taken time to properly harness and work on their CAREER CAPITAL ( SKILL SET ) and now there is no way that they can just be ignored. People like <a href="https://www.facebook.com/harry.banda.94?__cft__[0]=AZVHtx_K2M73QApZRSHEveQLLpefP6KwnZCsFny97GkRxSBcXk-iXdOw1iUenAF_ADn7AMSUQRY1FmhkpIVlLpY3Gkp2aWDmFUCvC4_fB290g5hYG0_yUt7U8bxxRvO7yTo&amp;__tn__=-]K-R">Harry Banda</a>, <a href="https://www.facebook.com/profile.php?id=100015471547979&amp;__cft__[0]=AZVHtx_K2M73QApZRSHEveQLLpefP6KwnZCsFny97GkRxSBcXk-iXdOw1iUenAF_ADn7AMSUQRY1FmhkpIVlLpY3Gkp2aWDmFUCvC4_fB290g5hYG0_yUt7U8bxxRvO7yTo&amp;__tn__=-]K-R">Natasha Wang Mwansa</a>, <a href="https://www.facebook.com/mputa.ngalande.7?__cft__[0]=AZVHtx_K2M73QApZRSHEveQLLpefP6KwnZCsFny97GkRxSBcXk-iXdOw1iUenAF_ADn7AMSUQRY1FmhkpIVlLpY3Gkp2aWDmFUCvC4_fB290g5hYG0_yUt7U8bxxRvO7yTo&amp;__tn__=-]K-R">Mputa</a>, <a href="https://www.facebook.com/billypeter.munyenyembe?__cft__[0]=AZVHtx_K2M73QApZRSHEveQLLpefP6KwnZCsFny97GkRxSBcXk-iXdOw1iUenAF_ADn7AMSUQRY1FmhkpIVlLpY3Gkp2aWDmFUCvC4_fB290g5hYG0_yUt7U8bxxRvO7yTo&amp;__tn__=-]K-R">Billy Peterlennards Munyenyembe</a>, just to mention but a few.</p><p>Forget about finding the right job and focus on building the right CAREER CAPITAL ( SKILL SET ) and a few years from now come back to this post and tell me how that is going.</p><p>The path won’t be an easier one, but the results will be worth it, it will take time, commitments, a continuous and deliberate daily practice of whatever CAREER CAPITAL ( SKILL SET ) you are trying to harness or build up. Stay motivated, stay focused and work on those skills that will get you the right job or earn you that profitable business that you want to get into. Stay blessed and happy CAREER CAPITAL ( SKILL SET ) build up.</p><p>Thanks for making it to the very end! I would love to know your thoughts about this. So if you can, feel free to leave a comment behind and If you liked it, drop me a few claps below 👏!</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=7c80e02cda57" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Money is no longer a measure of success!]]></title>
            <link>https://kapansa.medium.com/money-is-no-longer-a-measure-of-success-fcdc0910d1e3?source=rss-76d445c1f3af------2</link>
            <guid isPermaLink="false">https://medium.com/p/fcdc0910d1e3</guid>
            <category><![CDATA[self-improvement]]></category>
            <category><![CDATA[motivation]]></category>
            <category><![CDATA[self-development]]></category>
            <category><![CDATA[inspiration]]></category>
            <category><![CDATA[personal-success]]></category>
            <dc:creator><![CDATA[Samuel Kapansa]]></dc:creator>
            <pubDate>Fri, 21 May 2021 09:50:04 GMT</pubDate>
            <atom:updated>2021-05-21T09:50:04.479Z</atom:updated>
            <content:encoded><![CDATA[<h4>So Don’t Be fooled!</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*RCnfP215O0XUmjVP" /><figcaption>Photo by <a href="https://unsplash.com/@jpvalery?utm_source=medium&amp;utm_medium=referral">Jp Valery</a> on <a href="https://unsplash.com/?utm_source=medium&amp;utm_medium=referral">Unsplash</a></figcaption></figure><blockquote>There has never been a member of the human race like you before. You hold content that only you came to deliver. So live like it, because humanity can’t afford to miss the fruits of your tree.</blockquote><p>Just because you are not yet financially stable, don’t have your own car, house or even business doesn’t mean that you have failed at life. Money is no longer a measure of success, that’s an old way of thinking, a wrong one by that matter.</p><p>People experience and achieve success in different areas of their lives, just because they didn’t make a lot of money doesn’t mean they failed at life, some people are considered a success in their social, familial, financial and personal life.</p><p>Look at the life of Eastman, of the famous Eastman Kodak Company whose net worth at the time of his death was $55,000,000. Its clear to say the man was a financial success and had a very stable life in the financial business. Yet Mr. Eastman committed suicide, which shows that the man had no personal success.</p><p>More about George Eastman: <a href="https://en.wikipedia.org/wiki/George_Eastman">https://en.wikipedia.org/wiki/George_Eastman</a></p><p>Thomas Edison , the great inventor, on the other hand, was a millionaire. Had a very nice family. He got along very well with himself. But on the social side, Edison simply did not care for it. A huge barguest was held in one of the large hotels in New York City to honor Edison. Everybody of any importance was there but the honoree. When he was called if he would make himself available for the event, Edison replied, “Do I have to?”. Yet again it’s clear the man did not have it in his social life, yet today he is considered a success.</p><blockquote>Live each moment of your youth with wisdom, patience, commitment, purpose and truth of who you truly are, because there will never be any other moments like these very ones.</blockquote><p>More about Thomas Edison: <a href="https://en.wikipedia.org/wiki/Thomas_Edison">https://en.wikipedia.org/wiki/Thomas_Edison</a></p><p>Oh and don’t get me started on Albert Einstein! The word genius is and has mostly and frequently been used to describe the man, yet the man had challenges trying to make ends meet. Albert was certainly not a financially stable person of his time nor a millionaire, but he developed his mind and discovered so many and awesome principles and theories of physics that are being used in today’s world. He definitely was successful in his personal life.</p><p>More about Albert Einstein: <a href="https://en.wikipedia.org/wiki/Albert_Einstein">https://en.wikipedia.org/wiki/Albert_Einstein</a></p><p>So what I am trying to say?</p><p>Don’t overlook other areas of your life, work on yourself each day, learn as much as you can and develop the skills you want and take care of yourself, visit friends, talk to family members, get to know them, develop strong lasting healthy relationships with them, talk to people around you, interact with people of different ages, genders, race and cultures and you will be surprised how much you will learn. And don’t forget to push that business idea that you have been thinking about all this while. Work on it everyday and see it through to the end.</p><p>Don’t wait to retire for you to know that you’ve achieved success in your life. Live life every single moment, because there will never be a perfect moment for that. If you are a business person, don’t wait to have millions for you to enjoy your success and efforts, or if you are a student don’t wait until your graduation to celebrate your efforts and success, celebrate through each test, exam, or assignment.</p><p>Live life and succeed.</p><p>Thanks for making it to the very end! I would love to know your thoughts about this. So if you can, feel free to leave a comment behind and If you liked it, drop me a few claps below 👏!</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=fcdc0910d1e3" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[How I fell in love with learning.]]></title>
            <link>https://kapansa.medium.com/how-i-fell-in-love-with-learning-eee13426b68a?source=rss-76d445c1f3af------2</link>
            <guid isPermaLink="false">https://medium.com/p/eee13426b68a</guid>
            <category><![CDATA[mindset]]></category>
            <category><![CDATA[learning]]></category>
            <category><![CDATA[inspiration]]></category>
            <category><![CDATA[motivation]]></category>
            <category><![CDATA[education]]></category>
            <dc:creator><![CDATA[Samuel Kapansa]]></dc:creator>
            <pubDate>Tue, 28 Jul 2020 16:36:39 GMT</pubDate>
            <atom:updated>2025-04-07T06:06:14.843Z</atom:updated>
            <content:encoded><![CDATA[<h4>My primary and junior secondary learning curve.</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*-5rwMCkgyUZHyYQw" /><figcaption>Photo by <a href="https://unsplash.com/@timmossholder?utm_source=medium&amp;utm_medium=referral">Tim Mossholder</a> on <a href="https://unsplash.com/?utm_source=medium&amp;utm_medium=referral">Unsplash</a></figcaption></figure><blockquote>One of the greatest moments that each day brings is going to bed at night truly fulfilled, knowing that you took a step forward, towards your dream. — <a href="https://medium.com/u/76d445c1f3af">Samuel Kapansa</a></blockquote><p>Looking back in the past, specifically during my primary education, school and learning for me weren’t as exciting as it was for those that were well known for being the topmost students. I remember teachers would first give out end of term results to the best students in class and I was always last on the list. It never bothered me that much because I got used to the same routine, not knowing that I was developing a habit of always not doing better or even trying for a change.</p><p>I bet if I was to ask some of my primary school mates about the outcome of every end of term test that we ever had, most of them would admit that not even once did a thought of coming out last in class cross their minds as long as we were in the same class and wrote the same test.</p><p>Yes, my parents would tell me, “work hard, try your best, you can’t be failing like this, your friends are passing so can you!”, they believed I could do better but I just had a negative mindset and did not believe in myself that much. See I wasn’t going to do better with the same mindset I had believing that my position was being last in class, I needed to change. One of the greatest motivational speakers, <strong>Les Brown</strong>, once said:</p><blockquote>To do something that you have never done before, you have to become someone you have never been!</blockquote><p>And so, the question I had was, how? how was I going to start getting good grades like everyone else, how was I going to make school and learning as exciting as everyone else? I didn’t know the way of going about everything, I didn’t know how to start or where to start from, I didn’t believe in myself that I could do better like everyone else, I didn’t know how to ask for help, I didn’t know anything about school or learning and most of I didn’t even have a clear purpose to why I was even going to school.</p><p>Luckily, I met an awesome and passionate teacher, <strong>Mr Siamasambo</strong>, my grade 9 history teacher and mentor. Upon seeing my record, the man understood that I didn’t find pleasure in opening books or reading one for a change. I guess what they say is true, you can take a donkey to the water but you cannot force it to drink!</p><p>Understanding where I stood on the matter, Mr Siamasambo knew that the only way I was going to improve my grades was to help me develop an interest in learning and reading books. He told me that the reason I wasn’t doing well was that I had no goals to meet, no reason for learning and no sense of purpose in my work. He went on to say:</p><blockquote>To improve your grades you need to have a reason and a “why” that will drive you into becoming good at your work and getting those good grades.</blockquote><p>With time I started to understand him and how important it is to set goals and have a sense of purpose in everything we do if we are to succeed at it.</p><p>Months after this whole experience, my grades greatly improved, I went from being the bottom to the top of my class, not only did I end there but I went as far as getting the first position in both our grade 9 mock and final exams. From all these experiences I learned the importance of having clear goals and a sense of purpose in my every work and fell deeply in love with learning, all thanks to my teacher and mentor, <strong>Mr Siamasambo</strong>.</p><blockquote>You may be going through the same challenges that I went through or even harder ones, but one thing you ought to know is that we all have the power to choose, to choose to become our “Better self” and so, no matter what they say, don’t give in, don’t give up, keep on trying, keep on going, the best is yet to come.</blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*XsNI4EB0Fvnm8WMr7_8SGQ.jpeg" /><figcaption>Photo by <a href="https://unsplash.com/@bruno_nascimento?utm_source=unsplash&amp;utm_medium=referral&amp;utm_content=creditCopyText">Bruno Nascimento</a> on <a href="https://unsplash.com/@jakehills?utm_source=unsplash&amp;utm_medium=referral&amp;utm_content=creditCopyText">Unsplash</a></figcaption></figure><p>Thanks for making it to the very end! I would love to know your thoughts about this. So if you can, feel free to leave a comment behind and If you liked it, drop me a few claps below 👏!</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=eee13426b68a" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>