Skip to content

Repository files navigation

Secondhand Market

Project Duration: May 2025 – Jun 2025

A full-stack PHP + MySQL web application with scalable AWS cloud deployment.

Overview

Secondhand Market is a lightweight web application that allows users to post, browse, comment on, and manage second-hand items. It includes user authentication, item management, image uploads, and a clean modular PHP backend.

This project is deployed on AWS using a production-ready architecture that includes Elastic Beanstalk, EC2 Auto Scaling, Application Load Balancer, RDS MySQL (Multi-AZ), custom AMI, and a custom VPC with multi-AZ public subnets. The design ensures scalability, high availability, and stable performance.

Features

User System

  • User registration, login and logout
  • Session-based authentication
  • Form validation and sanitization

Marketplace Functions

  • Post items with image upload
  • Edit and delete listings
  • View item details
  • Item comment system
  • Browse all items

Backend

  • MySQL relational database
  • Secure PHP query handling
  • File upload processing
  • Organized and modular code structure

AWS Cloud Deployment

  • The cloud deployment is based on the following architecture:
image

Elastic Beanstalk

  • Manages application environment, deployment and health monitoring
  • Handles provisioning and integrates with EC2, ALB and Auto Scaling
image

EC2 with Custom AMI

  • Amazon Linux AMI preinstalled with Apache, PHP, and application files
  • Used by the Auto Scaling Group for fast instance creation
image

Auto Scaling Group

  • Minimum 2 and maximum 8 EC2 instances
  • Scaling triggered by NetworkOut utilization
image

Application Load Balancer

  • Distributes traffic between EC2 instances
  • Performs health checks and removes unhealthy instances

RDS MySQL (Multi-AZ)

  • Managed database with automatic failover
  • Provides high availability and backup support
image

Custom VPC

  • Two public subnets across two availability zones
  • Internet Gateway and routing configuration
  • Separate security groups for EC2 and RDS
image image

Email Notifications

  • Elastic Beanstalk environment event notifications
  • Alerts for server health and deployment status
image

Tech Stack

Frontend

  • HTML5
  • CSS

Backend

  • PHP 8+
  • Apache
  • MySQL

Cloud

  • AWS Elastic Beanstalk
  • AWS EC2
  • AWS RDS (MySQL)
  • AWS Auto Scaling
  • AWS Application Load Balancer
  • AWS AMI
  • AWS VPC

Screenshots

image image image image

About

A PHP + MySQL secondhand marketplace deployed on a scalable AWS cloud architecture (Elastic Beanstalk, EC2 Auto Scaling, RDS MySQL, Load Balancer, Custom AMI, VPC). Features include item posting, authentication, comments, and image uploads.

Topics

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages