Skip to content

Latest commit

Β 

History

1 Commit

Folders and files

NameName
Last commit message
Last commit date
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

PayCart Commerce πŸ›’

A premium full-stack e-commerce application built with Next.js, Express, Prisma, and PostgreSQL.

Features

  • 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.

Project Structure

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

Setup Instructions

1. Prerequisites

  • Node.js (v18+)
  • PostgreSQL installed and running

2. Backend Setup

  1. Navigate to /backend.
  2. Install dependencies: npm install.
  3. Configure .env file (see .env template in backend folder).
  4. Synchronize database: npx prisma migrate dev --name init.
  5. Seed data: npx ts-node prisma/seed.ts.
  6. Start server: npm run dev.

3. Frontend Setup

  1. Navigate to /frontend.
  2. Install dependencies: npm install.
  3. Start development server: npm run dev.

API Documentation

  • POST /api/auth/register - Create new account
  • POST /api/auth/login - Authenticate user
  • GET /api/products - List products with filters
  • POST /api/orders - Create new order (Auth required)

License

MIT

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages