MarzleyTech Learn

Home / Learn / App development fundamentals / Choosing your stack and setting up your tools

Choosing your stack and setting up your tools

A stack is the set of technologies an app is built with: the app framework, the backend language, the database and the hosting. Choosing well saves months; choosing badly means rewriting.

Popular stacks for Kenyan projects

StackAppBackendDatabaseGood for
Flutter + PHPFlutterPHP (Laravel or plain) on cPanelMySQLBusiness apps with M-Pesa, low hosting cost
Flutter + FirebaseFlutterFirebase (Auth, Firestore, Functions)FirestoreFast prototypes, real-time and offline features
React Native + NodeReact Native (Expo)Node.js (Express)PostgreSQL or MySQLJavaScript teams, apps with a matching React website
Kotlin + Spring/KtorNative AndroidKotlin/Java backendPostgreSQLAndroid-first products, large teams
PWA + PHPHTML/CSS/JS (or React)PHPMySQLCheapest way to reach everyone, internal systems

There's no single "best" stack. Choose by:

  1. Team skills: what you (or your team) know well ships faster.
  2. Budget and hosting: cPanel PHP hosting is cheap and common in Kenya; cloud servers cost more but scale further.
  3. Features: heavy offline use, Bluetooth printers, background location? Favour Flutter or native.
  4. Maintenance: who will maintain it in 2 years? Popular tools are easier to hire for.

The tools you need

ToolPurposeCost
VS CodeCode editor for Flutter, React Native, web, PHPFree
Android StudioAndroid SDK, emulator, Kotlin developmentFree
Git + GitHubVersion control and backup of your codeFree
FigmaUI design and prototypesFree plan
Postman or InsomniaTesting APIsFree plans
A real Android phoneTesting (better than the emulator on most laptops)You probably have one
Node.jsNeeded for React Native, many web toolsFree
XAMPP or LaragonLocal PHP + MySQL server on WindowsFree

Minimum computer

  • 8 GB RAM is the practical minimum for Android Studio; 16 GB is comfortable.
  • An SSD makes builds much faster than a hard disk.
  • No good laptop yet? Learn Dart on DartPad, React on CodeSandbox/StackBlitz, and use this hub's live editors. Many professionals started that way.

Set up Git from day one

Terminal
git config --global user.name "Your Name"
git config --global user.email "you@example.com"

git init                      # start tracking a project
git add .
git commit -m "First version of the shop app"
git remote add origin https://github.com/you/duka-app.git
git push -u origin main

Commit small changes often with clear messages. GitHub is also your portfolio: employers and clients look at it. Learn more in the Git & GitHub subject.

Project folder habits

  • One repository per app (and one for the backend, or a folder for each).
  • A README explaining what the app does and how to run it.
  • Never commit secrets (API keys, passwords, signing keys): put them in environment files listed in .gitignore.
  • Use the platform's recommended structure (Flutter's lib/, Android's app/src/main/).

Why the stack decision matters

The technologies you choose affect how fast you can build, how much the app costs to run, who can maintain it later, and whether it works well for users on budget phones and patchy networks. Clients rarely care about frameworks; they care about cost, speed to launch, reliability and future changes. A good developer explains the trade-offs in plain language and recommends what fits the project, not just what's fashionable.

Native vs cross-platform vs web

ApproachExamplesStrengthsWeaknesses
Native AndroidKotlin + Jetpack ComposeBest performance and device access, Google's recommended pathAndroid only; iOS needs a separate app
Native iOSSwift + SwiftUIBest iPhone experienceNeeds a Mac; iOS only
Cross-platformFlutter (Dart), React Native (JavaScript/TypeScript)One codebase for Android and iOS; fast developmentSome platform-specific work still needed; larger app size than native in some cases
Progressive Web App (PWA)HTML/CSS/JS, React, VueNo store needed, works on any device with a browser, installableLimited device features on some platforms; less "app store" visibility
No-code / low-codeGlide, FlutterFlow, AppSheet, AdaloVery fast prototypes, internal toolsLimits on customisation; platform lock-in; subscription costs

Choosing by project type

ProjectSensible choiceWhy
Small business catalogue with WhatsApp orderingPWA or websiteCheapest, no store approval, easy to share links
Delivery or ride app needing GPS, camera and notifications on Android and iOSFlutter or React NativeOne codebase, full device access
Fintech app with heavy security and performance needsNative or Flutter, with a strong back endMature security tooling and performance
Internal staff tool (stock taking, field data)No-code or PWA first; native later if neededQuick to deliver, cheap to change
GameUnity (C#) or GodotGame engines handle graphics and physics
Existing React web teamReact NativeReuse skills and some code

The back end: often the bigger decision

Most apps need a server for accounts, data, payments and notifications:

OptionExamplesGood for
Backend-as-a-ServiceFirebase, Supabase, AppwriteFast MVPs, authentication, real-time data, small teams
Custom APILaravel (PHP), Django/FastAPI (Python), Node.js (Express/NestJS), Spring (Java), ASP.NET (C#)Complex business rules, payments, integrations, full control
HostingShared cPanel (PHP), VPS, cloud platforms (Render, Railway, Fly.io), major cloudsDepends on stack, traffic and budget

Payments (M-Pesa Daraja, card gateways) must go through a server you control, because secret keys can't be stored in the app.

Cost factors to explain to clients

CostNotes
Development timeThe biggest cost; cross-platform can reduce it when both Android and iOS are needed
Developer accountsGoogle Play one-time fee; Apple Developer Program yearly fee
Hosting and databaseMonthly; grows with users and data
Third-party servicesSMS gateways, maps, email, push notifications, payment fees
MaintenanceUpdates for new Android/iOS versions, security fixes, library updates (budget for this every year)

Never quote only the build: clients are often surprised by yearly store fees, hosting and maintenance.

Setting up a development environment step by step

  1. Install Git and create a GitHub account.
  2. Install VS Code (with extensions for your language) and/or Android Studio (Android SDK and emulator).
  3. Install the language toolchain: Flutter SDK, Node.js LTS (for React Native/Expo), or the JDK (Kotlin/Android).
  4. Run the toolchain's check command (flutter doctor, npx expo-doctor) and fix what it reports.
  5. Enable USB debugging on an Android phone (Settings → About phone → tap Build number 7 times → Developer options → USB debugging) to test on a real device.
  6. Install Postman or a similar tool for testing APIs.

Testing on a real budget phone is often faster and more realistic than an emulator on a modest laptop.

Working on a modest computer

  • Use a real phone for testing instead of the emulator to save RAM.
  • Close browsers with many tabs while building.
  • An SSD makes builds much faster than an HDD.
  • Cloud build services (Expo EAS, Codemagic, GitHub Actions) can build release versions remotely.
  • Cyber cafés and tech hubs (and some libraries) can help when you don't yet have a capable laptop.

Decision checklist

  1. Which platforms do users need (Android only, or iOS too, or web)?
  2. Which device features are required (camera, GPS, Bluetooth, notifications, offline)?
  3. What's the budget and timeline?
  4. Who will maintain it, and what skills do they have?
  5. How many users and how much data are expected in the first year?
  6. What integrations are needed (M-Pesa, SMS, maps, existing systems)?

Write the decision and reasons down; it helps when clients or new team members ask "why did we choose this?"

Practice

  1. For three app ideas (school fees portal, delivery app, church events app), choose a stack and justify it.
  2. Install your chosen toolchain and run its doctor/check command until everything passes.
  3. Enable USB debugging and run a sample app on your phone.
  4. Write a one-page cost estimate including store fees, hosting and yearly maintenance.
  5. Create a GitHub repository with a .gitignore for your stack.
Think about it: A client wants "an app like Jumia" built in three weeks on a small budget. What would you recommend, and why?Show answer

Clarify the core need: likely a product catalogue, ordering and payment for their own shop. Suggest starting with a fast, mobile-friendly web shop or PWA (or a simple cross-platform MVP) with WhatsApp/M-Pesa checkout, launching quickly and gathering real orders. Large marketplace features (multiple sellers, logistics, reviews) can come later once the business proves demand. Be honest about what's realistic for the time and budget.

Check yourself

  1. What do we call the set of technologies an app is built with?

    Show answer

    stack

  2. Which free tool provides the Android SDK and emulator?

    Show answer

    Android Studio

  3. How much RAM is the practical minimum for Android Studio?

    Show answer

    8 GB

  4. Which file stops secrets from being committed to Git?

    Show answer

    .gitignore

  5. Which tool tests APIs by sending requests?

    Show answer

    Postman

  6. What kind of web app can be installed on a phone without an app store? (abbreviation)

    Show answer

    PWA

  7. Which two cross-platform frameworks are popular for Android and iOS from one codebase? (name one)

    Show answer

    Flutter

  8. Where must payment secret keys always be kept?

    Show answer

    server

Lesson 2 of 8 in App development fundamentals · Written by · Course notes