Monorepo with Medusa Storefront, Admin and Backend to demo using medusa-payment-paystack
for payments.
This comes with Ghana and Nigeria pre-configured as regions with Paystack payment support.
Make sure you have PNPM on your machine.
Create a Paystack account if you do not already have one, obtain your public key and secret key from the dashboard.
Prepopulate an sqlite database for use in the backend.
pnpm --filter backend seed
Add your Paystack secret key to your backend's environment file.
// apps/backend/.env or apps/backend/.env.production for production env.
PAYSTACK_SECRET_KEY=sk_test|live_XXXXXXXXXXXXXX
Add your Paystack secret key to your storefront's environment file.
// apps/storefront/.env
NEXT_PUBLIC_PAYSTACK_PUBLIC_KEY=pk_test|live_XXXXXXXXXXXXXX
pnpm i
pnpm start