Backend of the e-commerce website
| 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 |
Backend API for the ShopLight e-commerce platform built with PHP
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
-
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
- 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
The system will use a relational database (MySQL/MariaDB) with the following main tables:
- users
- products
- carts
- cart_items
- orders
- order_items
- Prepared statements to prevent SQL injection
- Input validation and sanitization
- Authentication using JWT or sessions
- Language: PHP 8.1+
- Database: MySQL / MariaDB
- Authentication: JWT (recommended) or Session-based
- API Style: RESTful JSON