A premium full-stack e-commerce application built with Next.js, Express, Prisma, and PostgreSQL.
- Frontend: Next.js 14, Tailwind CSS, Lucide Icons, Framer Motion.
- Backend: Node.js, Express, TypeScript, JWT Auth.
- Database: PostgreSQL with Prisma ORM.
- Payments: Integrated with Stripe (intl) and Paystack (local).
- Admin: Secure dashboard for managing orders and products.
PayCart Commerce/
βββ backend/ # Express API server
β βββ prisma/ # Database schema and seeds
β βββ src/ # API logic (controllers, routes, etc.)
βββ frontend/ # Next.js application
βββ src/app/ # Pages and layouts
βββ src/components/ # UI components
- Node.js (v18+)
- PostgreSQL installed and running
- Navigate to
/backend. - Install dependencies:
npm install. - Configure
.envfile (see.envtemplate in backend folder). - Synchronize database:
npx prisma migrate dev --name init. - Seed data:
npx ts-node prisma/seed.ts. - Start server:
npm run dev.
- Navigate to
/frontend. - Install dependencies:
npm install. - Start development server:
npm run dev.
POST /api/auth/register- Create new accountPOST /api/auth/login- Authenticate userGET /api/products- List products with filtersPOST /api/orders- Create new order (Auth required)
MIT