AI-Powered Business Management Platform for African SMEs
# ποΈ SHOPYSH
**AI-Powered Business Management Platform for African SMEs**
Shopysh helps small and medium businesses in Africa manage their products, orders, customers, finances, and marketing campaigns β all powered by AI.
## β¨ Features
- **Dashboard** β Real-time business analytics and KPIs
- **Products** β Inventory management with variants and categories
- **Orders** β Order processing, tracking, and fulfillment
- **Customers** β CRM with segmentation and communication history
- **Payments** β Payment tracking with NGN/USD support
- **Campaigns** β SMS & email marketing campaigns
- **Finance** β Revenue tracking, expenses, and financial reports
- **Team** β Multi-user roles and permissions
- **AI Assistant** β Powered by DeepSeek (or any OpenAI-compatible API)
- **Storefront** β Public-facing online store per tenant
- **WhatsApp** β Webhook integration for customer messaging
## ποΈ Architecture
- **Framework**: Next.js 14 (App Router)
- **Database**: PostgreSQL + Prisma ORM
- **Auth**: NextAuth.js (Credentials + Google SSO)
- **Styling**: Tailwind CSS + shadcn/ui
- **AI**: Local Qwen2.5 3B via llama.cpp (CPU) β or any OpenAI-compatible API
- **Multi-tenant**: Row-level isolation with tenant subdomain routing
## π§ͺ Local Development
To run the full 5-container stack (db Β· llm Β· app Β· nginx Β· certbot) on your
laptop before pushing to production, see **LOCAL_DEV.md**.
Quick version:
```bash
cp .env.local.example .env.local
docker compose -p shopysh -f docker-compose.local.yml up -d --build
# then open
localhost
```
## π Self-Hosted Deployment (Docker)
> β οΈ **Security note:** earlier exports of this project committed a real `.env`
> with live credentials (database URL, `NEXTAUTH_SECRET`, Google OAuth client
> secret, API keys). Those are now removed and `.env` is git-ignored. **Rotate
> every one of those secrets** if the old file ever reached a remote/GitHub.
### Prerequisites
- Docker & Docker Compose
- A domain name (e.g., `www.shopysh.com`) β¦