Skip to content

Commit 408ad1b

Browse files
committed
feat(marketplace): Add Crawl4AI marketplace with secure configuration
- Implement marketplace frontend and admin dashboard - Add FastAPI backend with environment-based configuration - Use .env file for secrets management - Include data generation scripts - Add proper CORS configuration - Remove hardcoded password from admin login - Update gitignore for security
1 parent ef46df1 commit 408ad1b

File tree

20 files changed

+5143
-0
lines changed

20 files changed

+5143
-0
lines changed

.gitignore

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,13 @@
11
# Scripts folder (private tools)
22
.scripts/
33

4+
# Database files
5+
*.db
6+
7+
# Environment files
8+
.env
9+
.env.local
10+
411
# Byte-compiled / optimized / DLL files
512
__pycache__/
613
*.py[cod]

docs/md_v2/assets/images/logo.png

1.58 KB
Loading

docs/md_v2/marketplace/README.md

Lines changed: 66 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,66 @@
1+
# Crawl4AI Marketplace
2+
3+
A terminal-themed marketplace for tools, integrations, and resources related to Crawl4AI.
4+
5+
## Setup
6+
7+
### Backend
8+
9+
1. Install dependencies:
10+
```bash
11+
cd backend
12+
pip install -r requirements.txt
13+
```
14+
15+
2. Generate dummy data:
16+
```bash
17+
python dummy_data.py
18+
```
19+
20+
3. Run the server:
21+
```bash
22+
python server.py
23+
```
24+
25+
The API will be available at http://localhost:8100
26+
27+
### Frontend
28+
29+
1. Open `frontend/index.html` in your browser
30+
2. Or serve via MkDocs as part of the documentation site
31+
32+
## Database Schema
33+
34+
The marketplace uses SQLite with automatic migration from `schema.yaml`. Tables include:
35+
- **apps**: Tools and integrations
36+
- **articles**: Reviews, tutorials, and news
37+
- **categories**: App categories
38+
- **sponsors**: Sponsored content
39+
40+
## API Endpoints
41+
42+
- `GET /api/apps` - List apps with filters
43+
- `GET /api/articles` - List articles
44+
- `GET /api/categories` - Get all categories
45+
- `GET /api/sponsors` - Get active sponsors
46+
- `GET /api/search?q=query` - Search across content
47+
- `GET /api/stats` - Marketplace statistics
48+
49+
## Features
50+
51+
- **Smart caching**: LocalStorage with TTL (1 hour)
52+
- **Terminal theme**: Consistent with Crawl4AI branding
53+
- **Responsive design**: Works on all devices
54+
- **Fast search**: Debounced with 300ms delay
55+
- **CORS protected**: Only crawl4ai.com and localhost
56+
57+
## Admin Panel
58+
59+
Coming soon - for now, edit the database directly or modify `dummy_data.py`
60+
61+
## Deployment
62+
63+
For production deployment on EC2:
64+
1. Update `API_BASE` in `marketplace.js` to production URL
65+
2. Run FastAPI with proper production settings (use gunicorn/uvicorn)
66+
3. Set up nginx proxy if needed

0 commit comments

Comments
 (0)