A modern, responsive e-commerce frontend built with Next.js and Shopify's Storefront API. MerchTab provides a beautiful and performant shopping experience with features like real-time cart updates, product filtering, and a seamless checkout process.
- 🛍️ Modern, responsive design
- 🔍 Real-time search functionality
- 🛒 Dynamic cart management
- 🎨 Dark mode support
- ⚡ Fast page loads with Next.js
- 🔄 Real-time inventory updates
- 📱 Mobile-first approach
- 🎯 SEO optimized
- Next.js 14
- TypeScript
- Tailwind CSS
- Shopify Storefront API
- Headless UI
- React Server Components
- Node.js 18.17 or later
- A Shopify store with Storefront API access
- npm or yarn
-
Clone the repository:
git clone https://github.com/kiwihodl/merchtab.git cd merchtab
-
Install dependencies:
npm install # or yarn install
-
Set up your environment variables:
cp .env.example .env.local
Then edit
.env.local
with your Shopify store details and other configuration. -
Run the development server:
npm run dev # or yarn dev
-
Open http://localhost:3000 in your browser.
Create a .env.local
file with the following variables:
NEXT_PUBLIC_SHOPIFY_STORE_DOMAIN=your-store.myshopify.com
NEXT_PUBLIC_SHOPIFY_STOREFRONT_ACCESS_TOKEN=your_storefront_access_token
SHOPIFY_REVALIDATION_SECRET=your_random_secret_string
NEXT_PUBLIC_SITE_NAME=MerchTab
NEXT_PUBLIC_SITE_URL=https://your-site-url.com
See .env.example
for detailed instructions on how to obtain these values.
This project is optimized for deployment on Vercel:
- Push your code to GitHub
- Import your repository on Vercel
- Add your environment variables in the Vercel project settings
- Deploy!
We welcome contributions! Please feel free to submit a Pull Request.
- Fork the repository
- Create your feature branch (
git checkout -b feature/AmazingFeature
) - Commit your changes (
git commit -m 'Add some AmazingFeature'
) - Push to the branch (
git push origin feature/AmazingFeature
) - Open a Pull Request
This project is licensed under the MIT License - see the LICENSE file for details.