Building the Backend Engine: How Bloom After's Platform Took Shape in Week 2
#Backend

Building the Backend Engine: How Bloom After's Platform Took Shape in Week 2

Backend Reporter
5 min read

From database models to deployed APIs, the Bloom After team transformed their maternal health platform from concept to working backend infrastructure, overcoming location-based search challenges and establishing the foundation for future features.

This week marked a pivotal shift for Bloom After as the team moved from planning to actual development, with the backend infrastructure taking shape to support the maternal health platform. The transition from conceptual design to working code represents a critical milestone in any software project, and the challenges faced along the way offer valuable insights into building scalable systems.

From Architecture to Implementation

The foundation of any robust application lies in its data architecture. This week focused on translating the product requirements into concrete database models using Node.js with MongoDB via Mongoose. The team defined structured models for Resources (educational materials and support content), Clinics (locations where mothers can find help), Community Stories (shared experiences from mothers), and Admin accounts (used to manage platform content).

These early decisions about data structure prove crucial for long-term scalability. By establishing consistent data models upfront, the frontend can interact with predictable APIs, reducing integration friction later. The team also implemented core utilities including API routes for resources and clinics, rate limiting to protect against abuse, and basic server structure for handling requests.

Bridging Frontend and Backend

One of the most significant achievements this week was establishing the connection between frontend and backend systems. Working closely with Grace Olabode, who developed the Resources and Clinic Finder pages, the backend team wired endpoints that allow these pages to retrieve real data from the server.

This integration required creating backend routes for Resources, Clinics, Admin login, and Dashboard data. To streamline development, the team also built a small utility API helper file that simplifies how requests are sent from frontend code to backend services. This kind of abstraction layer proves invaluable as applications grow more complex.

Authentication and Admin Systems

The admin login and dashboard setup represents a critical security component. The goal is to allow authorized administrators to manage content like resources, clinics, and community stories. The implementation included building the admin login page with loading states for clear user feedback, and wiring authentication logic so login requests communicate properly with the database.

Perhaps the most technically demanding challenge this week involved location-based search for clinics. What initially seemed straightforward quickly revealed its complexity. A clinic in Ikeja should appear when users search for Lagos, and searches for Ojo or Oshodi-Isolo should surface relevant nearby hospitals.

This problem required working with latitude and longitude data, using geolocation APIs to convert addresses into coordinates. Once coordinates are available, the system can compare distances between locations and determine which clinics are closest to users. This represents a common challenge in location-based applications where geographic boundaries don't align with how users think about places.

Infrastructure and Deployment

Preparing the backend infrastructure for reliable operation involved setting up several key services. The team configured MongoDB for data storage, Cloudinary for hosting images and media assets, and Render for deploying and running the backend server. Grace created initial service accounts while the backend team configured environment variables to connect everything properly.

By week's end, the backend was successfully deployed, allowing the team to test the system in a live environment. This deployment marks a crucial transition from development to production-ready code.

Team Collaboration and Learning

As Backend Lead, coordinating with other developers proved essential. Two early tasks were assigned to backend team members: Prospect worked on login page functionality while Sophia helped set up MongoDB and database configuration. Both contributions were valuable, and reviewing their implementations provided learning opportunities for the entire team.

The collaborative nature of the sprint highlighted how much developers can learn from reading others' code and approaches. This knowledge sharing accelerates development and improves code quality across the team.

Technical Insights and Discoveries

An interesting technical discovery this week involved cross-domain cookie functionality. The team learned that cookies can still work even when frontend and backend are on different domains, contrary to initial assumptions. With proper configuration, cookies can work across domains, though security setup differs slightly. This insight opens new options for authentication handling.

Progress and Looking Forward

By the end of Week 2, several platform components had taken shape: admin login and dashboard systems, resource content APIs, clinic finder backend logic, and community stories system (in early development). These interconnected pieces represent the platform's core functionality beginning to emerge.

The team's progress demonstrates how distributed systems development requires balancing immediate functionality with long-term scalability considerations. From database modeling to API design, each decision impacts the system's ability to grow and adapt.

Team Recognition

The collaborative effort behind Bloom After deserves acknowledgment. Grace Olabode (Engineering Lead) provided crucial collaboration while wiring backend connections to frontend pages. Nanji Lakan (Product Lead) continues guiding platform direction. Agugua Genevieve (Design Lead) created supportive, user-friendly interfaces. Prisca Onyemaechi (Lead Maintainer) maintained smooth GitHub workflow. And backend contributors Prospect and Sophia delivered valuable early contributions.

The Journey Continues

Week 2 represents the moment Bloom After transitioned from planning to active development. With backend architecture in place and initial APIs running, the platform can now support the resources, clinics, and stories that mothers will rely on. The challenges faced—particularly around location-based search—highlight the complexity of building systems that serve real users effectively.

There's still much to build, but with the engine now running, Bloom After is positioned to deliver meaningful support to mothers through technology. The foundation laid this week will support future features and scaling as the platform grows to serve its community.

Featured image

Gen AI apps are built with MongoDB Atlas

Comments

Loading comments...