Chat2Pay adalah platform e-commerce dengan fitur chat-to-pay - memungkinkan customer mencari dan membeli produk menggunakan percakapan natural language dengan bantuan AI/LLM.
- 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
git clone https://github.com/HackathonCodeCrafters/chat2pay.git
cd chat2paycd 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 httpBackend: http://localhost:9005
cd frontend-chat2pay
npm install
cp .env.example .env.local
# Edit .env.local: NEXT_PUBLIC_API_BASE_URL=http://localhost:9005
npm run devFrontend: http://localhost:3000
Swagger UI: http://localhost:9005/swagger/index.html
curl -X POST http://localhost:9005/api/products/ask \
-H "Content-Type: application/json" \
-d '{"prompt": "Saya butuh laptop gaming budget 25 juta"}'cd backend-chat2pay
docker-compose up -dCode Crafters - Hackathon Team
MIT License
