Mohamed Rai

CTO & Co-founder · Next Octet

Mohamed RaiCTO / Software Engineer

I build production software where engineering, product, and technology meet: I lead engineering at Next Octet and stay hands-on with the code.

I design and ship Flutter apps on Appwrite and Firebase, with payment integrations and store releases across Android, iOS, and the web. My background is in machine learning research.

Current
CTO, Next Octet · since Jun 2024
Shipping
Production apps on Google Play & the App Store
Platforms
Android · iOS · Web from one Flutter codebase
Based in
Temara, Morocco

01Selected work

Production apps, in the stores.

Five products published by Next Octet on Google Play and the App Store, built in Flutter on Appwrite and Firebase. As CTO I own their architecture, integrations, and releases.

PaymentsAndroid · iOS

GerPayPlus

A secure cross-platform payment application for international financial transactions.

For users who need to send and track international payments from a mobile app, with checkout handled by Stripe.

Highlights

  • Stripe payment integration
  • Real-time transaction tracking
  • Deep linking for payment redirects
  • Flutter
  • Appwrite
  • Stripe

Business managementAndroid · iOS · Web

Fidorma

A business management platform for accounting firms.

For accounting firms managing clients, documents, and declaration deadlines, with staff who need different levels of access.

Highlights

  • Client and document management
  • Declaration tracking
  • Role-based access control
  • Interactive dashboards
  • Flutter
  • Firebase

Every Next Octet app is listed on the Next octet developer page on Google Play (opens in a new tab). The project illustrations are abstract motifs, not product screenshots.

02Engineering & leadership

From requirements to the release train.

I set the technical direction and work in the codebase. The same process carries every product from discovery to a store release.

  1. 01

    Discovery

    Gather requirements with stakeholders and turn business objectives into a technical roadmap.

  2. 02

    Architecture

    Structure the app into clear layers with Clean Architecture, SOLID, dependency injection, and BLoC.

  3. 03

    Implementation

    Build a single Flutter/Dart codebase for Android, iOS, and the web on an Appwrite or Firebase backend.

  4. 04

    Integration

    Connect REST APIs, Stripe payments, deep links, and push and local notifications.

  5. 05

    Testing

    Protect quality with tests, code reviews, and continuous integration.

  6. 06

    Release

    Ship to the App Store and Google Play: versioning, provisioning, and store compliance.

  7. 07

    Iteration

    Maintain published apps and tie each next iteration to business goals.

Architecture pattern

The Flutter work follows Clean Architecture, and dependencies point inward. This is the general pattern, not a diagram of any single product.

  1. PresentationFlutter widgets · BLoC state
  2. DomainEntities · use cases · repository contracts
  3. DataRepository implementations · data sources · DTOs
  4. PlatformAppwrite · Firebase · REST · Stripe

How I lead

  • Technical direction

    Set the technical vision, product roadmap, and engineering strategy for all of Next Octet’s software.

  • Team building

    Recruit, mentor, and lead engineers, and coordinate developers, designers, and stakeholders.

  • Engineering standards

    Set coding standards, CI/CD pipelines, and architecture practices the team works to.

  • Hands on the code

    Design the architecture and build the integrations myself: Appwrite backends, payment gateways, and store releases.

03Experience

From Flutter developer to CTO.

  1. CTO & Co-founder

    Next Octet · Temara, Morocco

    Define and execute the technical vision, product roadmap, and engineering strategy across all of the company’s software.

    • Architect and oversee Flutter/Dart apps for Android, iOS, and the web, with Appwrite as the backend (Authentication, Databases, Storage, Cloud Functions).
    • Lead the software architecture: Clean Architecture, SOLID principles, dependency injection, and BLoC state management.
    • Build secure REST API integrations with payment gateways and third-party services.
    • Own App Store and Google Play releases, including versioning, provisioning, and store compliance.
    • Recruit, mentor, and lead engineers; set coding standards, CI/CD pipelines, and architecture practices.
    • Align technology initiatives with business goals to shorten delivery cycles.
  2. Western African Coast Engineering

    Temara, Morocco

    1. Chief Technology Officer

      Apr 2024 — Jun 2024

      • Drove software architecture decisions across the organization, designing cross-platform Flutter solutions.
      • Led mobile and backend technical decisions across multiple projects, improving maintainability through modern architecture practices.
    2. Project Manager & Software Engineer

      Jun 2023 — Apr 2024

      • Ran full project lifecycles, from requirements gathering through production deployment.
      • Developed Flutter apps and backend services for enterprise clients, coordinating developers, designers, and stakeholders.
      • Maintained quality through testing, code reviews, and continuous integration.
    3. Flutter Developer

      Sep 2022 — Jun 2023

      • Built cross-platform mobile and web apps with Flutter, Clean Architecture, and BLoC.
      • Integrated Firebase Authentication, Firestore, Cloud Functions, Cloud Storage, and push notifications; consumed REST APIs and third-party SDKs.
      • Built a student exit-management and security app deployed across multiple private schools.
      • Delivered a full-featured accountant office management web application.
      • Published and maintained apps on the App Store and Google Play.
  3. Mohammadia School of Engineering, Mohammed V University

    Rabat, Morocco

    1. Research Engineer — Healthcare AI

      • Contributed to an intelligent predictive prognosis system for personalized breast cancer treatment follow-up in Morocco.
      • Applied machine learning and deep learning (TensorFlow, Scikit-learn) to clinical datasets for patient outcome modeling.

Earlier

  • Jul 2019

    ICT Training · Huawei Technologies — Seeds for the Future, Shenzhen, China

    Hands-on training in Huawei’s R&D laboratories covering 5G, LTE, AI, Big Data, Cloud Computing, and IoT.

  • 2018 — 2019

    Private Tutor · Rene-Descartes Support Centre, Mers El Kheir, Morocco

    Tutored secondary students in physics, and university students in algorithms, C, and Python.

  • 2016 — 2018

    Roboticist · FSR Robotics Club, Faculty of Sciences, Rabat, Morocco

    Designed and built autonomous and semi-autonomous robots: an obstacle-avoiding robot, a Bluetooth robot with its own mobile app, a line-tracking robot, and an automatic lockbox.

04Background & research

From physics to machine learning to production apps.

I came to software through physics, robotics, and telecommunications, then did graduate research in machine learning for healthcare before moving into production engineering.

At Mohammed V University I contributed to a predictive prognosis system for personalized breast cancer treatment follow-up in Morocco, applying TensorFlow and Scikit-learn to clinical data. My doctoral research was on a machine learning-based recommender system for personalized treatment.

  1. 01PhysicsBSc, with a major in computer science, electronics & automation
  2. 02RoboticsAutonomous robots built at the FSR Robotics Club
  3. 03TelecommunicationsMSc in computer science & telecom, plus Huawei ICT training in Shenzhen
  4. 04Machine learningHealthcare AI research and a recommender-system thesis

Education

  1. 2021–2022

    PhD Candidate — Computer Science

    ENSIAS, Mohammed V University, Rabat

    Thesis topic: a machine learning-based recommender system for personalized breast cancer treatment.

  2. 2019

    Master’s Degree — Computer Science & Telecommunications

    Faculty of Sciences, Mohammed V University, Rabat

    Major: Multimedia Content.

  3. 2017

    Bachelor’s Degree — Physics

    Faculty of Sciences, Mohammed V University, Rabat

    Major: Computer Science, Electronics and Automation.

Certifications

  • Data Visualization with PythonIBM / Coursera · 2022
  • Machine Learning with PythonIBM / Coursera · 2022
  • Python (Basic)HackerRank · 2022
  • EFSET English CertificateEF SET · 2022 · B2 Upper Intermediate — 56/100
  • Data Analysis with PythonIBM / Coursera · 2021
  • Data Science MethodologyIBM / Coursera · 2021
  • Databases & SQL for Data ScienceIBM / Coursera · 2021
  • Python for Data Science, AI & DevelopmentIBM / Coursera · 2021
  • Python Project for Data ScienceIBM / Coursera · 2021
  • Tools for Data ScienceIBM / Coursera · 2021
  • What is Data Science?IBM / Coursera · 2021

Languages

Arabic
Native
French
Professional working proficiency
English
Professional working proficiency

05Toolkit

Skills, grouped by what they’re for.

Languages: Dart, Python, Java, C, SQL.

  • Product Engineering

    Taking products from requirements to production.

    • Requirements gathering
    • Technical roadmaps
    • Project lifecycle
    • Release management
    • Stakeholder coordination
  • Mobile & Web

    One codebase, three platforms.

    • Flutter
    • Dart
    • Android
    • iOS
    • Flutter Web
    • Material Design
  • Architecture

    Code that stays maintainable as it grows.

    • Clean Architecture
    • BLoC
    • SOLID
    • Dependency Injection
  • Backend & Cloud

    Managed backends and serverless logic.

    • Appwrite
    • Firebase
    • Firestore
    • REST APIs
    • Cloud Functions
    • Serverless Functions
    • Authentication
  • Integrations

    Payments, links, and notifications.

    • Stripe
    • Deep Linking
    • Push Notifications
    • Local Notifications
    • JSON APIs
    • Third-party SDKs
  • AI & Data

    From graduate research and training.

    • Machine Learning
    • Deep Learning
    • Recommender Systems
    • TensorFlow
    • Keras
    • Scikit-learn
    • Pandas
    • NumPy
    • OpenCV
    • Matplotlib
  • DevOps & Tooling

    Build, ship, repeat.

    • Git
    • GitHub Actions
    • CI/CD
    • App Store publishing
    • Google Play publishing
    • Android Studio
    • IntelliJ IDEA
    • VS Code
    • Jupyter
    • LaTeX
  • AI-assisted Development

    AI tools as part of the daily workflow.

    • Claude
    • Codex
    • ChatGPT

06Contact

Let’s build something.

Whether it’s a product to ship, a team to lead, or architecture to untangle, email is the fastest way to reach me.

Temara, Morocco