Skip to content

SWA-TeamQ/IP2-Backend

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

20 Commits
 
 
 
 
 
 
 
 

Repository files navigation

IP2-Backend

Backend of the e-commerce website

Contributors

ID Name Username
ETS0038/16 Abel Mekonnen bella-247
ETS0170/16 Amira Abdurahman ami798
ETS0243/16 Bemigbar Yehuwalawork Bem132833
ETS0265/16 Betelhem Kassaye betelhem16
ETS0038/16 Barok Yeshiber Barok-y
ETS 0240/16 Bekam Yoseph bekam-bit

ShopLight Backend

Backend API for the ShopLight e-commerce platform built with PHP

PHP License: MIT

📌 Project Overview

A lightweight, secure and well-organized RESTful API powering the ShopLight e-commerce website.

The goal of this project is to implement a clean and structured backend system that handles user management, product operations, and order processing while following real-world backend development practices.

This project is a continuation of our frontend application and focuses on integrating a dynamic backend using PHP and MySQL.

Frontend Repository:
https://github.com/E-commerce-foundation/FrontEnd

🎯 Project Objectives

  • Build a functional RESTful API using PHP

  • Implement secure user authentication

  • Manage products, carts, and orders

  • Apply best practices in backend structure and security

  • Integrate seamlessly with the existing frontend

✨ Core Features

  • User Registration & Authentication (JWT or Session)
  • Product CRUD (with admin-only create/update/delete)
  • Shopping Cart (add, update quantity, remove)
  • Order creation & order history
  • Secure password hashing (bcrypt)
  • Input validation & sanitization
  • SQL Injection protection (prepared statements)
  • CORS support for frontend integration

🗄️ Database Design (Planned)

The system will use a relational database (MySQL/MariaDB) with the following main tables:

  • users
  • products
  • carts
  • cart_items
  • orders
  • order_items

🔐 Security Measures

  • Prepared statements to prevent SQL injection
  • Input validation and sanitization
  • Authentication using JWT or sessions

🛠️ Tech Stack

  • Language: PHP 8.1+
  • Database: MySQL / MariaDB
  • Authentication: JWT (recommended) or Session-based
  • API Style: RESTful JSON

About

Backend of the e-commerce website

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors