Migstore is an ecommerce website template created with NextJS and ShadCN.
- Product listing with pagination and filters by URL so it can be easily shared.
- Modern design using ShadCN components.
- Contact form using the React Resend library.
- Stripe integration for payment processing and checkout.
- Basic user sign in with Google and theme switch.
- Responsive design.
This project is deployed on Vercel. It also uses Github actions for CI/CD. You can view the live application at https://next-js-ecom-neon.vercel.app/.
Follow these instructions to set up the project locally.
- Node.js (version 14 or later)
- npm or yarn
-
Clone the repository:
git clone https://github.com/yourusername/your-repo-name.git
-
Navigate to the project directory:
cd your-repo-name
-
Install the dependencies:
npm install # or yarn install
-
Set up environment variables:
Create a
.env.local
file in the root of your project and add the following variables:NEXT_PUBLIC_STRIPE_PUBLIC_KEY=your_public_key STRIPE_SECRET_KEY=your_secret_key RESEND_KEY=your_resend_key STRIPE_WEBHOOK_SECRET=your_webhook_secret
To start the development server, run:
npm run dev
# or
yarn start
In order to conclude a purchase using stripe, please use the following card data for test mode:
- Card Number: 4242 4242 4242 4242
- Date: 12/34
- CCV 123