Skip to content

Commit fc83e52

Browse files
authored
feat: Add Demo Mode for Testing and Evaluation (#37)
* demo things.
1 parent c6a969b commit fc83e52

File tree

7 files changed

+1274
-6622
lines changed

7 files changed

+1274
-6622
lines changed

.env.example

+2
Original file line numberDiff line numberDiff line change
@@ -14,3 +14,5 @@ DUMBDROP_TITLE=DumbDrop # Site title displayed in header
1414
APPRISE_URL= # Apprise URL for notifications (e.g., tgram://bottoken/ChatID)
1515
APPRISE_MESSAGE=New file uploaded - {filename} ({size}), Storage used {storage}
1616
APPRISE_SIZE_UNIT=auto # Size unit for notifications (auto, B, KB, MB, GB, TB)
17+
18+
DEMO_MODE=false

README.md

+1
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@ No auth (unless you want it now!), no storage, no nothing. Just a simple file up
1313
- [Security](#security)
1414
- [Development](#development)
1515
- [Technical Details](#technical-details)
16+
- [Demo Mode](demo.md)
1617
- [Contributing](#contributing)
1718
- [License](#license)
1819

demo.md

+28
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
2+
## Demo Mode
3+
4+
### Overview
5+
DumbDrop includes a demo mode that allows testing the application without actually storing files. Perfect for trying out the interface or development testing.
6+
7+
### Enabling Demo Mode
8+
Set in your environment or docker-compose.yml:
9+
```env
10+
DEMO_MODE=true
11+
```
12+
13+
### Demo Features
14+
- 🚫 No actual file storage - files are processed in memory
15+
- 🎯 Full UI experience with upload/download simulation
16+
- 🔄 Maintains all functionality including:
17+
- Drag and drop
18+
- Progress tracking
19+
- Multiple file uploads
20+
- Directory structure
21+
- File listings
22+
- 🚨 Clear visual indicator (red banner) showing demo status
23+
- 🧹 Auto-cleans upload directory on startup
24+
- Files are processed but not written to disk
25+
- Upload progress is simulated
26+
- File metadata stored in memory
27+
- Maintains same API responses as production
28+
- Cleared on server restart

0 commit comments

Comments
 (0)