← Back to Portfolio
Featured Project

InstaMenu

Multi-Tenant SaaS Backend for Restaurant Management

Role:
Backend Developer

Duration:
2025-2026

Contributed to transforming an existing restaurant management backend into a scalable multi-tenant SaaS platform by designing tenant isolation, extending REST APIs, implementing authentication, and improving backend architecture.

Multi-Tenant ArchitectureREST APIJWT AuthenticationDigitalOcean Spaces

The Challenge

The existing backend was designed for a single business. The main challenge was converting it into a scalable SaaS platform capable of serving multiple restaurants with complete data isolation, while preserving existing functionality and extending the platform with new backend features.

My Responsibilities

Key areas I owned as the sole backend engineer.

Multi-Tenant Architecture

Designed and implemented the multi-tenant architecture with dynamic tenant database resolution based on incoming requests.

Multi-TenantMongoDBNode.jsExpress.js

API Development

Extended the existing REST API with new endpoints and missing CRUD operations while maintaining backward compatibility.

REST APIExpress.jsCRUD

Authentication & Authorization

Implemented JWT-based authentication and authorization across protected APIs.

JWTAuthenticationAuthorization

Feature Development

Contributed to campaign management functionality and improved order and branch management logic.

Business LogicNode.js

Cloud Storage Integration

Enhanced cloud storage integration using DigitalOcean Spaces with AWS S3 SDK for scalable object storage.

DigitalOcean SpacesAWS S3 SDKSharp

Engineering Highlights

✓Designed core tenant isolation mechanism allowing multiple businesses to share the same application
✓Implemented request-based database switching for automatic tenant resolution
✓Introduced JWT authentication and improved role-based authorization across protected APIs
✓Extended an existing production backend with new features while maintaining compatibility
✓Improved media handling through DigitalOcean Spaces integration for scalable object storage

Technology Stack

Node.jsExpress.jsTypeScriptMongoDBMongooseJWTDigitalOcean SpacesAWS S3 SDKSharpVercel

Key Outcomes

  • Converted the platform into a scalable multi-tenant SaaS architecture.
  • Enabled isolated databases for multiple businesses.
  • Improved platform security through JWT authentication.
  • Extended backend functionality with additional APIs and business logic.
  • Enhanced maintainability by improving an existing production codebase.