Skip to content

Latest commit

 

History

26 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

☕ Cloud-Native Cafe Management System

A scalable, low-latency cafe ordering and payment system built using serverless AWS architecture


📌 Overview

This project is a cloud-native cafe management and ordering system designed to handle real-world ordering workloads with reliable payment workflows.

The frontend is built using HTML, CSS, and JavaScript, while the backend is implemented in PHP and deployed using AWS Lambda to achieve a fully serverless architecture.

RESTful APIs are exposed via AWS API Gateway, with persistent data stored in AWS RDS. Secure and compliant payment processing is handled using Cashfree.


✨ Key Features

  • Serverless Backend powered by AWS Lambda
  • RESTful API Design using API Gateway
  • Secure Payment Processing with Cashfree
  • Low-Latency Order Management using AWS RDS
  • Auto-Scaling during peak cafe ordering hours
  • Dockerized Setup for consistent local and cloud environments

🧱 Architecture

  • Client (HTML / CSS / JavaScript)
  • AWS API Gateway
  • AWS Lambda (PHP backend)
  • AWS RDS (orders & payment state)
  • Cashfree Payment Gateway

Request Flow:

Client → API Gateway → Lambda (PHP)
       → AWS RDS → Cashfree Payment
       ← Secure Callback Handling

🛠️ Tech Stack

FrontendHTML, CSS, JavaScript
BackendPHP
API LayerAWS API Gateway
ComputeAWS Lambda
DatabaseAWS RDS
PaymentsCashfree
ContainerizationDocker

⚙️ Engineering Notes

  • Designed for high availability during peak ordering times
  • Implemented circuit-breaker logic for external payment API calls
  • Handled secure payment callbacks to prevent duplicate transactions
  • Focused on low-latency state management for real-time order updates

📁 Project Structure

cafe-management-system/
├── frontend/
│   ├── index.html
│   ├── styles.css
│   └── app.js
├── backend/
│   ├── handlers/
│   ├── services/
│   ├── config/
│   └── index.php
├── Dockerfile
├── database.sql
└── README.md

🚀 Installation & Local Setup

Prerequisites

  • Docker installed
  • AWS account with Lambda & API Gateway enabled
  • AWS RDS instance configured
  • Cashfree merchant credentials

Local Development

git clone <repository-url>
cd cafe-management-system

docker build -t cafe-system .
docker run -p 8080:8080 cafe-system

The application will be available at:

http://localhost:8080

☁️ Deployment (AWS)

  • Package the PHP backend for AWS Lambda
  • Deploy Lambda functions
  • Expose APIs using API Gateway
  • Configure environment variables for RDS and Cashfree
  • Enable secure HTTPS endpoints

🚦 System Characteristics

LatencyLow
ScalabilityAutomatic (Serverless)
API TypeREST
AvailabilityHigh

👤 Author

Vishal Soni
Cloud & DevOps Engineer
Email: vishalsoni6350@gmail.com


⭐ If you find this project useful, consider starring the repository.

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

1 watching

Forks

Releases

Packages

Used by

Contributors

Languages