🚙 Live Version 📔Figma Design File
next
: ^14.2.5react
: ^18react-dom
: ^18@apollo/client
: ^3.11.4@apollo/experimental-nextjs-app-support
: ^0.11.2graphql
: ^15.9.0react-query
: ^3.39.3@stripe/react-stripe-js
: ^2.8.0@stripe/stripe-js
: ^4.4.0stripe
: ^16.10.0tailwindcss
: ^3.4.1axios
: ^1.7.4@svgr/webpack
: ^8.1.0Clone the Repository
```bash git clone https://github.com/your-username/your-repo.git cd your-repo
Install all the depndencies
npm install
Create local.env
CONSUMER_KEY=
CONSUMER_SECRET=
NEXT_PUBLIC_WORDPRESS_API_URL=
NEXT_PUBLIC_NEWSLETTER_KEY=
NEXT_PUBLIC_NEWSLETTER_SECRET=
STRIPE_SECRET_KEY=
NEXT_PUBLIC_STRIPE_PUBLISHABLE_KEY=
STRIPE_WEBHOOK_SECRET=
NEXT_PUBLIC_WORDPRESS_API_URL is the wordpress url, for example. 'https://navajowhite-yak-294103.hostingersite.com'
Navigate to WordPress WooCommerce -> Settings -> Advanced -> REST API -> Add Key
Once key generated update the CONSUMER_KEY and CONSUMER_SECRET
Setup Stripe testing account
Stripe Dashboard -> Overview; will have the STRIPE_SECRET_KEY and NEXT_PUBLIC_STRIPE_PUBLISHABLE_KEY
On Stripe Dashboard -> Webhooks; will have Signing Secret, use that to update STRIPE_WEBHOOK_SECRET
On WordPress Admin Dashboard -> Install Plugin Newsletter -> Newsletter install Addons Manager -> Install Newsletter API
Newsletter -> API -> Create New Key -> Permission Read / Write -> will generate NEWSLETTER_KEY and NEWSLETTER_SECRET
Run the server
npm run dev