DEV Community

Menula De Silva
Menula De Silva

Posted on

๐Ÿ’ŽHow I Built a Medium-Level E-Commerce Website

Hey Dev Community ๐Ÿ‘‹

Iโ€™m Menula De Silva, a 12-year-old developer from Sri Lanka ๐Ÿ‡ฑ๐Ÿ‡ฐ who loves building full-stack web apps.

Recently, I created my most advanced project yet โ€” LustellaGems.com, a complete e-commerce website for selling premium gemstones online.

This project is extra special to me because itโ€™s inspired by my momโ€™s real gem business idea ๐Ÿ’–

I wanted to turn her dream into a real, working online store โ€” and thatโ€™s how Lustella Gems was born.


๐Ÿง  The Vision

It all started when my mom shared her idea of creating an online platform to showcase and sell gemstones.

I decided to take on the challenge and build it from scratch โ€” not just as a demo, but as a real e-commerce website.

So I asked myself:

โ€œWhat would a real gem shop need to run online smoothly?โ€

That question helped me design and plan every part of the system carefully.


โš™๏ธ Tech Stack I Used

Area Technology
๐Ÿ–ฅ๏ธ Frontend HTML, CSS, Bootstrap, JavaScript, jQuery
โš™๏ธ Backend PHP, MySQL
๐Ÿงฎ Currency Conversion JavaScript (LKR โ†’ USD calculation)
๐Ÿ” Authentication PHP Sessions + MySQL
๐Ÿ“ฆ Hosting cPanel with a custom domain
๐Ÿงฉ UI/UX Design Figma

๐Ÿ’Ž Core Features I Built

๐Ÿง 1. Login, Signup, and Profile Management

Users can create accounts, log in securely, and edit their profile details anytime.

The system uses PHP sessions to manage authentication and prevent unauthorized access.

All user data is stored safely in MySQL, and both frontend and backend validation ensure clean, secure inputs.


๐Ÿ›๏ธ 2. Dynamic Product System

Products are database-driven, dynamically loaded using PHP and displayed through clean Bootstrap card layouts.

Each product has:

  • Name, price, image, and description
  • Real-time LKR โ†’ USD conversion (using JavaScript)
  • A โ€œRequest Productโ€ button for customers who want something custom

๐Ÿ“จ 3. Product Request System

This was one of my favorite features to build.

Users can send special requests for gemstones that arenโ€™t currently listed.

Submissions are handled via AJAX and stored in the database (or emailed to the admin).

It gives the site a more personal, customer-friendly feel.


๐Ÿ’ฌ 4. Review and Rating System

Logged-in users can write reviews on products.

If someone tries without logging in, a SweetAlert pop-up gently reminds them to sign in first โ€” just like a professional shop.


๐ŸŒ 5. LKR โ†’ USD Price Conversion

Every product shows both:

  • LKR. 15000
  • USD. 50 (automatically calculated and rounded with JavaScript)

It helps international customers easily understand prices, making the store feel global.


๐Ÿ“ฐ 6. Blog Section

To make the website more engaging, I built a blog system.

The admin can post articles about:

  • Sri Lankan gem history
  • Mining and gemstone culture
  • Gem categories and fun facts

This turns the site into both an online store and an educational hub for gem lovers.


๐ŸŽจ UI/UX Design

The design follows a luxurious white, gold, and sapphire blue theme โ€” elegant yet minimal.

I designed the layout in Figma and implemented it with Tailwind + Bootstrap.

All pages are fully responsive and feature smooth animations for a premium experience.


โš”๏ธ Challenges I Faced

  • ๐Ÿ” Building a secure login & signup system with sessions
  • ๐Ÿ’พ Structuring the database for users, products, reviews, and requests
  • ๐ŸŽจ Keeping the same premium feel across every page and device

Each challenge helped me understand how real-world e-commerce systems are built from the ground up.


๐Ÿ’ก What I Learned

  • How to connect PHP with MySQL efficiently
  • Using AJAX to update data without page reloads
  • Validating user input securely
  • Organizing both frontend and backend logic neatly
  • The importance of combining creativity with functionality

๐Ÿš€ Whatโ€™s Next

Iโ€™m currently working on:

  • Admin panel for managing blogs
  • Email notifications using PHPMailer
  • Wishlist and cart system
  • Advanced search filters with real-time results

My goal is to make LustellaGems.com a complete online store โ€” professional, scalable, and user-friendly.


โค๏ธ Final Thoughts

Building Lustella Gems wasnโ€™t just a coding project โ€” it was a personal mission to bring my momโ€™s gem business idea to life.

It taught me how to balance creativity, logic, and real-world requirements as a young developer.

If youโ€™d like to check it out, hereโ€™s the live site ๐Ÿ‘‡

๐Ÿ‘‰ LustellaGems.com


If you enjoyed this post, please drop a โค๏ธ or comment your thoughts!

Iโ€™d love to hear your feedback and connect with other developers around the world ๐Ÿ™Œ

Top comments (0)