2025-09-02 14:00:54 +03:00
|
|
|
# Quoter Features
|
2025-08-12 15:59:51 +03:00
|
|
|
|
2025-09-02 14:00:54 +03:00
|
|
|
Simple file upload/download proxy with user quotas and S3 storage.
|
2025-08-12 15:59:51 +03:00
|
|
|
|
2025-09-02 14:00:54 +03:00
|
|
|
## What Quoter Does
|
2025-08-12 15:59:51 +03:00
|
|
|
|
2025-09-02 14:00:54 +03:00
|
|
|
### 📤 File Upload
|
|
|
|
|
- **Multipart uploads** to S3/Storj storage
|
|
|
|
|
- **User quotas** (5GB default per user)
|
|
|
|
|
- **JWT authentication** with session management
|
|
|
|
|
- **MIME type detection** from file content
|
|
|
|
|
- **Rate limiting** to prevent abuse
|
2025-08-12 15:59:51 +03:00
|
|
|
|
2025-09-02 14:00:54 +03:00
|
|
|
### 📁 File Storage
|
|
|
|
|
- **S3-compatible storage** (Storj primary, AWS fallback)
|
|
|
|
|
- **Redis caching** for file metadata and quotas
|
|
|
|
|
- **Multi-cloud support** with automatic migration
|
2025-08-12 15:59:51 +03:00
|
|
|
|
2025-09-02 14:00:54 +03:00
|
|
|
### 🌐 File Serving
|
|
|
|
|
- **Direct file access** via filename
|
|
|
|
|
- **Fast response** optimized for Vercel Edge caching
|
|
|
|
|
- **CORS whitelist** for secure access
|
|
|
|
|
- **Direct file serving** optimized for CDN caching
|
2025-08-12 15:59:51 +03:00
|
|
|
|
2025-09-02 14:00:54 +03:00
|
|
|
## 🚀 Modern Architecture
|
2025-08-12 15:59:51 +03:00
|
|
|
|
2025-09-02 14:00:54 +03:00
|
|
|
**Quoter**: Simple file upload/download + S3 storage
|
|
|
|
|
**Vercel**: Smart thumbnails + optimization + global CDN
|
2025-08-12 15:59:51 +03:00
|
|
|
|
2025-09-02 14:00:54 +03:00
|
|
|
💋 **Ultra-simple**: Quoter just handles raw files. That's it.
|
|
|
|
|
💋 **Simplified**: Focus on what each service does best.
|
2025-08-12 15:59:51 +03:00
|
|
|
|
2025-09-02 14:00:54 +03:00
|
|
|
## Technical Stack
|
2025-08-12 15:59:51 +03:00
|
|
|
|
2025-09-02 14:00:54 +03:00
|
|
|
- **Backend**: Rust + Actix Web
|
|
|
|
|
- **Storage**: Redis (metadata) + S3/Storj (files)
|
|
|
|
|
- **Auth**: JWT tokens
|
|
|
|
|
- **Tests**: 36 passing tests with full coverage
|
2025-08-12 15:59:51 +03:00
|
|
|
|
2025-09-02 14:00:54 +03:00
|
|
|
## Status
|
2025-08-12 15:59:51 +03:00
|
|
|
|
2025-09-02 14:00:54 +03:00
|
|
|
- ✅ Upload API with quotas
|
|
|
|
|
- ✅ Static file server
|
|
|
|
|
- ✅ S3 storage integration
|
|
|
|
|
- ✅ JWT authentication
|
|
|
|
|
- ✅ Rate limiting & security
|
|
|
|
|
- ✅ Full test coverage
|
|
|
|
|
- 🚀 Production ready
|