Skip to content

Latest commit

 

History

77 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Chat2Pay

Chat2Pay Logo

Go 1.25 Fiber v2 PostgreSQL 16 pgvector

Next.js 16 React 19 TypeScript Tailwind CSS

Gemini OpenAI Mistral

Docker Swagger JWT MIT License


Chat2Pay adalah platform e-commerce dengan fitur chat-to-pay - memungkinkan customer mencari dan membeli produk menggunakan percakapan natural language dengan bantuan AI/LLM.

🎯 Fitur Utama

  • AI-Powered Product Search - Cari produk dengan bahasa natural menggunakan LLM (Gemini/OpenAI/Mistral)
  • Vector Search - Pencarian produk berbasis semantic similarity dengan pgvector
  • Multi-Role Authentication - JWT-based auth dengan role Merchant dan Customer
  • Complete E-Commerce Flow - Manajemen produk, order, customer, dan merchant
  • Swagger Documentation - API docs interaktif untuk frontend integration

🚀 Quick Start

Prerequisites

1. Clone Repository

git clone https://github.com/HackathonCodeCrafters/chat2pay.git
cd chat2pay

2. Setup Backend

cd backend-chat2pay

# Start PostgreSQL
docker-compose up -d postgres

# Create database
docker exec -it postgres_svc psql -U postgres -c "CREATE DATABASE chat2pay;"

# Copy & edit config
cp config/yaml/app.example.yaml config/yaml/app.yaml
# Edit app.yaml: tambahkan API keys (Gemini/OpenAI/Mistral)

# Run backend
go mod tidy
go run main.go migrate up
go run main.go http

Backend: http://localhost:9005

3. Setup Frontend

cd frontend-chat2pay

npm install
cp .env.example .env.local
# Edit .env.local: NEXT_PUBLIC_API_BASE_URL=http://localhost:9005

npm run dev

Frontend: http://localhost:3000

📚 API Documentation

Swagger UI: http://localhost:9005/swagger/index.html

🤖 AI Chat-to-Pay

curl -X POST http://localhost:9005/api/products/ask \
  -H "Content-Type: application/json" \
  -d '{"prompt": "Saya butuh laptop gaming budget 25 juta"}'

🐳 Docker

cd backend-chat2pay
docker-compose up -d

👥 Team

Code Crafters - Hackathon Team

📄 License

MIT License

Releases

Packages

Contributors

Languages