Skip to content

A modern web e-commerce app built with Next.js, React, Tailwind CSS, and PostgreSQL, featuring a shopping cart, Stripe checkout, and user authentication.

License

Notifications You must be signed in to change notification settings

wmsalves/bewear

Repository files navigation

BeWear

Banner da loja

Web e-commerce application focused on men's fashion, developed to simulate a complete, modern, and functional online store.The main focus was to create a simple, smooth, and accessible shopping experience across all devices.


🎯 Project Purpose

The main idea was to build an online sales platform where users can:

  • Explore products organized by categories
  • Add and remove items from the cart
  • Place orders easily and securely
  • Track the status of their purchases

Besides functionality, the project applied best development practices and modern technologies to provide a well-structured application.


⚙️ Implemented Features

  • 📂 Product Catalog with filters and categories
  • 🛒 Persistent Cart that keeps items even after page reload
  • 💳 Stripe Integration for payment simulation
  • 🔐 Authentication System with signup and login
  • 📦 Order Management with purchase history
  • 📱 Responsive Layout optimized for desktop and mobile
  • 🔍 Product Recommendations for interactive navigation

🖼️ Demo

Preview do site


🛠️ Technologies

Frontend

  • ⚛️ Next.js 15 + React 19
  • 🔷 TypeScript
  • 🎨 Tailwind CSS
  • 🧩 Radix UI / shadcn-ui

Backend

  • 🔄 Next.js API Routes
  • 🗄️ Drizzle ORM
  • 🐘 PostgreSQL
  • 🔐 Better Auth
  • 💰 Stripe
  • 🔄 TanStack Query

🚀 How to Run the Project

Prerequisites

  • Node.js 18+
  • PostgreSQL installed
  • Stripe account (for payment simulation)

Steps

# Clone this repository
git clone https://github.com/wmsalves/bewear.git
cd bewear

# Configure the .env file with your keys
# Install dependencies
npm install

# Setup the database
npm run db:generate
npm run db:push
npm run db:seed

# Run the development server
npm run dev

Access at: http://localhost:3000


📂 Code Structure

src/
├── app/               # App Router
│   ├── api/           # API Routes
│   ├── auth/          # Authentication
│   ├── cart/          # Cart
│   ├── checkout/      # Checkout flow
│   ├── orders/        # Order history
│   └── products/      # Product details
├── components/        # Reusable components
├── db/                # Database configurations
├── hooks/             # Custom hooks
├── lib/               # Utilities
└── providers/         # Context providers

📈 Key Learnings

During the project development, I improved skills in:

  • 🔄 State Management with React Query
  • 📦 Frontend-Backend Integration via API Routes
  • 📱 Responsiveness across different screen sizes
  • 🔐 Authentication flow with secure tokens
  • 💳 Stripe Payments in a test environment

☁️ Deployment

The project can be easily hosted on Vercel, leveraging direct integration with Next.js.


📚 References


📜 License

This project is licensed under the MIT License.

About

A modern web e-commerce app built with Next.js, React, Tailwind CSS, and PostgreSQL, featuring a shopping cart, Stripe checkout, and user authentication.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published