Skip to content

Commit cd7b6d1

Browse files
Alexander HughesAlexander Hughes
authored andcommitted
Initial commit - CCAI Collections app
1 parent f2b16d1 commit cd7b6d1

28 files changed

+10623
-209
lines changed

.vscode/extensions.json

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
{
2+
"recommendations": ["denoland.vscode-deno"]
3+
}

README.md

Lines changed: 110 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,124 @@
1-
# Base44 App
1+
# CCAI Collections App
22

3+
A Vite+React app for collections management with Supabase backend.
34

4-
This app was created automatically by Base44.
5-
It's a Vite+React app that communicates with the Base44 API.
5+
## Prerequisites
66

7-
## Running the app
7+
- Node.js (v18 or higher)
8+
- npm or yarn
9+
- Supabase account
10+
- AWS account (for deployment)
11+
12+
## Environment Setup
13+
14+
1. Create a `.env.local` file in the root directory:
15+
```bash
16+
VITE_SUPABASE_URL=your-supabase-project-url
17+
VITE_SUPABASE_ANON_KEY=your-supabase-anon-key
18+
```
19+
20+
2. Get your Supabase credentials:
21+
- Go to [Supabase Dashboard](https://app.supabase.com)
22+
- Create a new project or select existing
23+
- Go to Settings → API
24+
- Copy the Project URL and anon/public key
25+
26+
## Installation
827

928
```bash
1029
npm install
30+
```
31+
32+
## Running the app
33+
34+
```bash
35+
# Development mode
1136
npm run dev
37+
38+
# Production build
39+
npm run build
40+
41+
# Preview production build
42+
npm run preview
1243
```
1344

14-
## Building the app
45+
## Database Setup
46+
47+
The app requires these Supabase tables:
48+
- `portfolios` - Portfolio management
49+
- `debts` - Debt records
50+
- `debtors` - Debtor information
51+
- `payments` - Payment tracking
52+
- `vendors` - Vendor management
53+
- `integrations` - Third-party integrations
54+
- `campaigns` - Communication campaigns
55+
56+
Run the migrations in the `supabase/migrations/` folder.
1557

58+
## Deployment
59+
60+
### AWS S3 + CloudFront (Recommended)
61+
62+
1. Build the app:
1663
```bash
1764
npm run build
1865
```
1966

20-
For more information and support, please contact Base44 support at [email protected].
67+
2. Deploy to S3:
68+
```bash
69+
# Create S3 bucket
70+
aws s3 mb s3://your-bucket-name
71+
72+
# Upload files
73+
aws s3 sync dist/ s3://your-bucket-name --delete
74+
75+
# Enable static website hosting
76+
aws s3 website s3://your-bucket-name --index-document index.html --error-document index.html
77+
78+
# Make public
79+
aws s3api put-public-access-block --bucket your-bucket-name --public-access-block-configuration "BlockPublicAcls=false,IgnorePublicAcls=false,BlockPublicPolicy=false,RestrictPublicBuckets=false"
80+
81+
aws s3api put-bucket-policy --bucket your-bucket-name --policy '{
82+
"Version": "2012-10-17",
83+
"Statement": [{
84+
"Effect": "Allow",
85+
"Principal": "*",
86+
"Action": "s3:GetObject",
87+
"Resource": "arn:aws:s3:::your-bucket-name/*"
88+
}]
89+
}'
90+
```
91+
92+
3. (Optional) Add CloudFront for HTTPS:
93+
- Go to AWS CloudFront Console
94+
- Create distribution pointing to your S3 website URL
95+
- Enable "Redirect HTTP to HTTPS"
96+
97+
### Alternative: AWS Amplify Console
98+
99+
1. Push code to GitHub
100+
2. Go to AWS Amplify Console
101+
3. Connect GitHub repository
102+
4. Add environment variables (VITE_SUPABASE_URL, VITE_SUPABASE_ANON_KEY)
103+
5. Deploy automatically
104+
105+
## Features
106+
107+
- Portfolio management
108+
- Debt tracking and collection
109+
- Debtor management
110+
- Payment processing
111+
- Vendor management
112+
- Communication campaigns
113+
- Legal case tracking
114+
- Reporting and analytics
115+
- Third-party integrations
116+
117+
## Tech Stack
118+
119+
- **Frontend**: React 18, Vite, TailwindCSS
120+
- **Backend**: Supabase (PostgreSQL, Auth, Storage)
121+
- **Deployment**: AWS S3 + CloudFront
122+
- **Styling**: TailwindCSS + shadcn/ui components
123+
124+
For more information and support, please contact support.
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
{
2+
"hash": "48b0db7f",
3+
"configHash": "1565c660",
4+
"lockfileHash": "e3b0c442",
5+
"browserHash": "7711f0ef",
6+
"optimized": {},
7+
"chunks": {}
8+
}
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
{
2+
"type": "module"
3+
}

index.html

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,10 @@
22
<html lang="en">
33
<head>
44
<meta charset="UTF-8" />
5-
<link rel="icon" type="image/svg+xml" href="https://base44.com/logo_v2.svg" />
5+
66
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
7-
<title>Base44 APP</title>
7+
<link rel="icon" type="image/svg+xml" href="/favicon.svg" />
8+
<title>CCAI Collections</title>
89
</head>
910
<body>
1011
<div id="root"></div>

0 commit comments

Comments
 (0)