A Vite+React app for collections management with Supabase backend.
- Node.js (v18 or higher)
- npm or yarn
- Supabase account
- AWS account (for deployment)
- Create a
.env.localfile in the root directory:
VITE_SUPABASE_URL=your-supabase-project-url
VITE_SUPABASE_ANON_KEY=your-supabase-anon-key- Get your Supabase credentials:
- Go to Supabase Dashboard
- Create a new project or select existing
- Go to Settings → API
- Copy the Project URL and anon/public key
npm install# Development mode
npm run dev
# Production build
npm run build
# Preview production build
npm run previewThe app requires these Supabase tables:
portfolios- Portfolio managementdebts- Debt recordsdebtors- Debtor informationpayments- Payment trackingvendors- Vendor managementintegrations- Third-party integrationscampaigns- Communication campaigns
Run the migrations in the supabase/migrations/ folder.
- Build the app:
npm run build- Deploy to S3:
# Create S3 bucket
aws s3 mb s3://your-bucket-name
# Upload files
aws s3 sync dist/ s3://your-bucket-name --delete
# Enable static website hosting
aws s3 website s3://your-bucket-name --index-document index.html --error-document index.html
# Make public
aws s3api put-public-access-block --bucket your-bucket-name --public-access-block-configuration "BlockPublicAcls=false,IgnorePublicAcls=false,BlockPublicPolicy=false,RestrictPublicBuckets=false"
aws s3api put-bucket-policy --bucket your-bucket-name --policy '{
"Version": "2012-10-17",
"Statement": [{
"Effect": "Allow",
"Principal": "*",
"Action": "s3:GetObject",
"Resource": "arn:aws:s3:::your-bucket-name/*"
}]
}'- (Optional) Add CloudFront for HTTPS:
- Go to AWS CloudFront Console
- Create distribution pointing to your S3 website URL
- Enable "Redirect HTTP to HTTPS"
- Push code to GitHub
- Go to AWS Amplify Console
- Connect GitHub repository
- Add environment variables (VITE_SUPABASE_URL, VITE_SUPABASE_ANON_KEY)
- Deploy automatically
- Portfolio management
- Debt tracking and collection
- Debtor management
- Payment processing
- Vendor management
- Communication campaigns
- Legal case tracking
- Reporting and analytics
- Third-party integrations
- Frontend: React 18, Vite, TailwindCSS
- Backend: Supabase (PostgreSQL, Auth, Storage)
- Deployment: AWS S3 + CloudFront
- Styling: TailwindCSS + shadcn/ui components
For more information and support, please contact support.