This project is a modern ecommerce platform built with NextJS, TypeScript, and TailwindCSS. It features seamless data migration from WooCommerce to Shopify, custom API routes, and maintains SEO-friendly URL patterns.
- Dynamic data transformation from WooCommerce to Shopify
- Custom NextJS API routes
- SEO-optimized URL structure matching WordPress patterns
- Responsive UI built with shadcn components
- Stripe payment integration
- Comprehensive testing suite using JEST and Cypress
- NextJS
- TypeScript
- TailwindCSS
- Shopify
- Stripe
- JEST
- Cypress
- Node.js (version 20.4.0)
- npm or yarn
- Shopify account
- Stripe account
- Clone the repository
git clone https://github.com/samikaran/fullstack-ecommerce-nextjs-shopify.git - Install dependencies
or
npm installyarn install - Set up environment variables (create a
.env.localfile in the root directory)SHOPIFY_API_KEY=your_shopify_api_key SHOPIFY_API_SECRET_KEY=your_shopify_secret_key SHOPIFY_STOREFRONT_ACCESS_TOKEN=your_shopify_storefront_access_token NEXT_PUBLIC_SHOPIFY_STORE_ENDPOINT=your_shopify_store_endpoint NEXT_PUBLIC_STRIPE_PUBLIC_KEY=your_stripe_public_key STRIPE_SECRET_KEY=your_stripe_secret_key NEXT_PUBLIC_SITE_DOMAIN=your_main domain
npm run dev
or
yarn dev
Visit http://localhost:3000 to view the application.
Run unit tests:
npm test
Run end-to-end tests:
npm run cypress
This project can be easily deployed to Vercel, which is optimized for NextJS applications. Follow these steps:
-
Sign up for a Vercel account at https://vercel.com if you haven't already.
-
Install the Vercel CLI:
npm i -g vercel -
From your project directory, run:
vercel -
Follow the prompts to link your project to Vercel.
-
Configure your environment variables in the Vercel dashboard:
- Go to your project settings
- Navigate to the "Environment Variables" section
- Add your
SHOPIFY_API_KEY,STRIPE_SECRET_KEY,SHOPIFY_STOREFRONT_ACCESS_TOKEN,NEXT_PUBLIC_SHOPIFY_STORE_ENDPOINT,NEXT_PUBLIC_STRIPE_PUBLIC_KEY,STRIPE_SECRET_KEYandNEXT_PUBLIC_SITE_DOMAIN
-
For subsequent deployments, you can use:
vercel --prod
Vercel will automatically detect your NextJS project and apply the optimal build settings. Your app will be deployed and you'll receive a URL for your live site.
To set up continuous deployment:
- Connect your GitHub repository to Vercel.
- Vercel will automatically deploy your app when you push changes to your main branch.
- You can configure additional options like preview deployments for pull requests in the Vercel dashboard.
Remember to manage your environment variables securely and never commit them to your repository.
Project Link: https://github.com/samikaran/fullstack-ecommerce-nextjs-shopify






