Skip to content

blackbox24/E-Commerce-platform

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

43 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

https://roadmap.sh/projects/ecommerce-api

Full-Stack E-Commerce Platform

A production-ready, full-stack e-commerce solution built with Next.js, Express, and PostgreSQL. This platform features a secure shopping experience, administrative management tools, and seamless Stripe payment integration.

🏗 Project Architecture

The project is orchestrated with Docker Compose, utilizing Nginx as a high-performance entry point:

  • Nginx: Acting as a Reverse Proxy and Load Balancer (Port 80).
  • Frontend: Next.js (App Router) storefront, optimized for performance and SEO.
  • Backend: Express.js REST API with PostgreSQL for data persistence.

🚀 Quick Start (Docker)

Ensure you have Docker and Docker Compose installed.

  1. Clone the repository:

    git clone https://github.com/blackbox24/E-Commerce-platform.git
    cd E-Commerce-platform
  2. Configure Environment Variables: Create a .env file in the root directory (based on .env.example) with your credentials:

    cp .env.example .env
  3. Launch the platform:

    docker-compose up --build

📦 Key Features

🛒 Storefront

  • Browse & Search: Paginated product listings with dynamic image resolution.
  • Cart Management: Add/Remove items with real-time stock awareness.
  • Secure Checkout: Integrated with Stripe for PCI-compliant payments.
  • User Profile: Personal order history and session management.

🛡 Security

  • HTTP-only Cookies: Secure authentication flow that protects against XSS/CSRF.
  • Transactions: Atomic database operations for order fulfillment.
  • Idempotency: Webhook protection to prevent duplicate orders.

👨‍💼 Administration

  • Dashboard: High-level overview of platform metrics.
  • Inventory CRUD: Manage products with multi-part image uploads.
  • User & Order Management: Administrative control over all platform data.

🛠 Documentation per Service

For detailed technical breakdowns, service-specific TODOs, and deployment strategies, please refer to:


✅ Master TODO List

  • Hybrid SSR/CSR Authentication with Cookies.
  • Scalable Backend Pagination.
  • Idempotent Stripe Webhook Integration.
  • Multi-stage Optimized Docker Builds.
  • Atomic Order Fulfillment Transactions.
  • Implement Redis Caching for Product Stock.
  • Add Loading Skeletons and Error Boundaries.
  • Integrate a dedicated Image CDN (Cloudinary).

👥 Author

Hope Decardi-Nelson - GitHub

About

E-Commerce platform with cart and payment gateway integration.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors