Skip to content

An ecommerce site made with Next.js (app router), Shadcn/UI, Razorpay, Sanity.io and Cloudflare Pages

License

Notifications You must be signed in to change notification settings

aakash-a-dev/oxabags

 
 

Repository files navigation

oxabags

oxaBags is an e-commerce website showcasing our collection of bags. We are manufacturers, wholesalers, and exporters of jute bags and cotton bags, specializing in corporate events and exhibitions.

image

Features

  • Browse a wide selection of bags
  • Shopping cart functionality
  • Secure checkout process with form validation
  • Statically generated product pages
  • Responsive design for mobile and desktop
  • Type-safe development with TypeScript

Tech Stack

  • Framework: Next.js (App Router)
  • Language: TypeScript
  • UI Components: Shadcn/UI
  • CMS: Sanity.io
  • Hosting: Cloudflare Pages
  • State Management: Zustand
  • Payment: Razorpay Invoices

Project Structure

The project is organized into two main branches:

  • master: Contains the API routes version
  • with-server-action: Implements server actions

Screenshots

Click to view screenshots

image

image

Screenshot 2024-04-28 213034

Screenshot 2024-04-28 213054

Screenshot 2024-04-28 213112

Development

To set up the project locally:

  1. Clone the repository
  2. Install dependencies: npm install
  3. Set up environment variables for sanity and razorpay (see .env.example)
  4. Run the development server: npm run dev

Lighthouse Score

Known Issues

I am currently experiencing issues with server actions in Cloudflare Pages. The with-server-action branch contains this implementation, while the master branch uses API routes.

About

An ecommerce site made with Next.js (app router), Shadcn/UI, Razorpay, Sanity.io and Cloudflare Pages

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • TypeScript 92.4%
  • HTML 5.7%
  • CSS 1.3%
  • JavaScript 0.6%