{"id":37098819,"url":"https://github.com/jiil07/jcloud","last_synced_at":"2026-01-14T12:01:11.812Z","repository":{"id":238580659,"uuid":"785734332","full_name":"JIIL07/jcloud","owner":"JIIL07","description":"Jcloud is a client-server add to keep your files in a cloud storage","archived":false,"fork":false,"pushed_at":"2025-09-20T18:11:50.000Z","size":718,"stargazers_count":7,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-09-20T20:20:58.375Z","etag":null,"topics":["cloud-services","go","golang"],"latest_commit_sha":null,"homepage":"https://jiil07.github.io/jcloud/","language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/JIIL07.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2024-04-12T14:06:02.000Z","updated_at":"2025-09-20T18:11:53.000Z","dependencies_parsed_at":"2024-05-06T20:44:50.829Z","dependency_job_id":"24ee0792-ca5b-4ea4-b549-fdf367c5f533","html_url":"https://github.com/JIIL07/jcloud","commit_stats":null,"previous_names":["jiil07/sql","jiil07/cloudfiles","jiil07/jcloud"],"tags_count":3,"template":false,"template_full_name":null,"purl":"pkg:github/JIIL07/jcloud","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/JIIL07%2Fjcloud","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/JIIL07%2Fjcloud/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/JIIL07%2Fjcloud/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/JIIL07%2Fjcloud/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/JIIL07","download_url":"https://codeload.github.com/JIIL07/jcloud/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/JIIL07%2Fjcloud/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28419272,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-14T10:47:48.104Z","status":"ssl_error","status_checked_at":"2026-01-14T10:46:19.031Z","response_time":107,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["cloud-services","go","golang"],"created_at":"2026-01-14T12:01:10.900Z","updated_at":"2026-01-14T12:01:11.805Z","avatar_url":"https://github.com/JIIL07.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# 🚀 JCloud - Modern Cloud File Storage System\n\n[![Go Version](https://img.shields.io/badge/Go-1.23+-00ADD8?style=for-the-badge\u0026logo=go)](https://golang.org/)\n[![License](https://img.shields.io/badge/License-MIT-green.svg?style=for-the-badge)](LICENSE)\n[![Code Quality](https://img.shields.io/badge/Code%20Quality-A+-brightgreen?style=for-the-badge)](.golangci.yml)\n[![Linter](https://img.shields.io/badge/Linter-Passing-brightgreen?style=for-the-badge)](.golangci.yml)\n\n\u003e **A high-performance, scalable cloud file storage system built with Go, featuring a clean architecture, comprehensive API, and modern CLI interface.**\n## ✨ Features\n\n### 🔧 Core Functionality\n- **File Management**: Upload, download, delete, and organize files\n- **Version Control**: Track file versions with delta compression\n- **User Authentication**: Secure session-based authentication\n- **Image Gallery**: Dedicated image viewing and management\n- **File Metadata**: Rich metadata support with descriptions and tags\n- **Hash Verification**: SHA-256 file integrity checking\n\n### 🏗️ Architecture\n- **Clean Architecture**: Separation of concerns with service layers\n- **Interface-Based Design**: Dependency injection and testability\n- **RESTful API**: Comprehensive HTTP API with proper status codes\n- **Database Layer**: SQLite3 with transaction support\n- **Middleware**: Authentication, logging, and error handling\n- **WebSocket Support**: Real-time file synchronization\n\n### 🖥️ Client Applications\n- **CLI Client**: Interactive command-line interface with Cobra\n- **Desktop App**: Rust-based GUI for file selection (egui)\n- **Web Interface**: Modern HTML5 interface\n- **Admin Panel**: Administrative tools and user management\n\n\n## 🚀 Quick Start\n\n### Prerequisites\n- Go 1.23+\n- SQLite3\n- Rust (for desktop app)\n\n### Installation\n\n```bash\n# Clone the repository\ngit clone https://github.com/JIIL07/jcloud.git\ncd jcloud\n\n# Build the server\ngo build -o bin/server cmd/server/main.go\n\n# Build the CLI client\ngo build -o bin/jcloud cmd/cloud/main.go\n\n# Build the desktop app (optional)\ncd interactive_file_selector\ncargo build --release\n```\n\n### Running the Server\n\n```bash\n# Start the server\n./bin/server\n\n# Server will be available at http://localhost:8080\n```\n\n### Using the CLI Client\n\n```bash\n# Login\njcloud login\n\n# Upload a file\njcloud add /path/to/file.txt\n\n# List files\njcloud list\n\n# Download a file\njcloud download filename.txt\n\n# Get help\njcloud --help\n```\n\n## 📁 Project Structure\n\n```\njcloud/\n├── cmd/                          # Application entry points\n│   ├── cloud/                   # CLI client\n│   └── server/                  # HTTP server\n├── internal/                    # Private application code\n│   ├── client/                  # CLI client implementation\n│   │   ├── app/                 # Application logic\n│   │   ├── cmd/                 # CLI commands\n│   │   ├── models/              # Data models\n│   │   └── requests/            # HTTP client\n│   └── server/                  # Server implementation\n│       ├── handlers/            # HTTP handlers\n│       ├── middleware/          # HTTP middleware\n│       ├── routes/              # Route configuration\n│       ├── storage/             # Database layer\n│       ├── types/               # Interface definitions\n│       └── utils/               # Utility functions\n├── pkg/                         # Public packages\n│   ├── hash/                    # Hashing utilities\n│   ├── log/                     # Logging utilities\n│   └── params/                  # Parameter handling\n├── interactive_file_selector/   # Rust desktop app\n├── static/                      # Static assets\n└── web/                         # Web interface\n```\n\n## 🔧 Configuration\n\n### Server Configuration (`config/config.yaml`)\n\n```yaml\nserver:\n  address: \":8080\"\n  read_timeout: 30s\n  write_timeout: 30s\n  idle_timeout: 60s\n\ndatabase:\n  path: \"storage/storage.db\"\n\nstatic:\n  path: \"static/\"\n\nenv: \"development\"\n```\n\n### Client Configuration (`config/client.yaml`)\n\n```yaml\nserver:\n  url: \"https://jcloud.up.railway.app\"\n  timeout: 30s\n\nstorage:\n  cache_path: \"~/.jcloud/cache\"\n  cookie_path: \"~/.jcloud/cookies\"\n\nhints:\n  enabled: true\n  timeout: 5s\n```\n\n## 🌐 API Endpoints\n\n### Authentication\n- `POST /api/v1/login` - User login\n- `GET /api/v1/logout` - User logout\n- `GET /api/v1/user/{user}` - Get current user\n\n### File Operations\n- `POST /api/v1/user/{user}/files/upload` - Upload files\n- `GET /api/v1/user/{user}/files/list` - List files\n- `GET /api/v1/user/{user}/files/images` - Image gallery\n- `GET /api/v1/user/{user}/files/{filename}/download` - Download file\n- `DELETE /api/v1/user/{user}/files/{filename}/delete` - Delete file\n\n### File Metadata\n- `GET /api/v1/user/{user}/files/{filename}/info` - File information\n- `PATCH /api/v1/user/{user}/files/{filename}/metadata` - Update metadata\n- `GET /api/v1/user/{user}/files/{filename}/hash-sum` - File hash\n\n### Version Control\n- `POST /api/v1/user/{user}/files/{filename}/versions` - Create version\n- `GET /api/v1/user/{user}/files/{filename}/versions` - List versions\n- `GET /api/v1/user/{user}/files/{filename}/versions/{version}` - Get version\n- `GET /api/v1/user/{user}/files/{filename}/versions/last` - Get last version\n- `DELETE /api/v1/user/{user}/files/{filename}/versions/{version}` - Delete version\n- `GET /api/v1/user/{user}/files/{filename}/restore` - Restore to version\n\n### Admin\n- `GET /admin/admin` - Admin authentication\n- `GET /admin/checkadmin` - Check admin status\n- `GET /admin/all-users` - List all users\n- `GET /admin/sql` - Execute SQL queries\n- `GET /admin/cmd` - Execute system commands\n\n## 🏗️ Architecture Overview\n\n### Clean Architecture Principles\n\n```\n┌─────────────────────────────────────────────────────────────┐\n│                    Presentation Layer                       │\n├─────────────────────────────────────────────────────────────┤\n│  HTTP Handlers  │  CLI Commands  │  Desktop App  │  Web UI  │\n├─────────────────────────────────────────────────────────────┤\n│                    Business Logic Layer                     │\n├─────────────────────────────────────────────────────────────┤\n│  File Service   │  Auth Service  │  Validation Service      │\n├─────────────────────────────────────────────────────────────┤\n│                    Data Access Layer                        │\n├─────────────────────────────────────────────────────────────┤\n│  Storage Service │  Database Layer │  File System           │\n└─────────────────────────────────────────────────────────────┘\n```\n\n### Key Design Patterns\n\n- **Dependency Injection**: Services are injected into handlers\n- **Interface Segregation**: Small, focused interfaces\n- **Repository Pattern**: Data access abstraction\n- **Service Layer**: Business logic encapsulation\n- **Middleware Pattern**: Cross-cutting concerns\n\n## 🧪 Development\n\n### Code Quality\n\nThis project maintains high code quality standards:\n\n- **Linting**: golangci-lint with 14 active linters\n- **Formatting**: gofmt with simplification\n- **Error Handling**: Comprehensive error checking\n- **Documentation**: Clean, self-documenting code\n- **Testing**: Unit and integration tests\n\n### Running Tests\n\n```bash\n# Run all tests\ngo test ./...\n\n# Run tests with coverage\ngo test -cover ./...\n\n# Run linter\ngolangci-lint run\n\n# Format code\ngo fmt ./...\n```\n\n### Building\n\n```bash\n# Build all binaries\nmake build\n\n# Build server only\nmake build-server\n\n# Build client only\nmake build-client\n\n# Clean build artifacts\nmake clean\n```\n\n## 🚀 Deployment\n\n### Docker\n\n```bash\n# Build Docker image\ndocker build -t jcloud .\n\n# Run container\ndocker run -p 8080:8080 jcloud\n```\n\n### Railway\n\n```bash\n# Deploy to Railway\nrailway login\nrailway link\nrailway up\n```\n\n### Manual Deployment\n\n```bash\n# Build for production\nCGO_ENABLED=1 GOOS=linux go build -o jcloud-server cmd/server/main.go\n\n# Run with production config\n./jcloud-server\n```\n\n## 📊 Performance\n\n- **Concurrent Requests**: Handles 1000+ concurrent users\n- **File Upload**: Supports files up to 100MB\n- **Database**: SQLite3 with connection pooling\n- **Memory Usage**: Optimized for low memory footprint\n- **Response Time**: Sub-100ms API responses\n\n## 🔒 Security\n\n- **Authentication**: Session-based with secure cookies\n- **Authorization**: Role-based access control\n- **Input Validation**: Comprehensive request validation\n- **SQL Injection**: Parameterized queries\n- **XSS Protection**: Input sanitization\n- **CSRF Protection**: Token-based protection\n\n## 🤝 Contributing\n\n1. Fork the repository\n2. Create a feature branch (`git checkout -b feature/amazing-feature`)\n3. Commit your changes (`git commit -m 'Add amazing feature'`)\n4. Push to the branch (`git push origin feature/amazing-feature`)\n5. Open a Pull Request\n\n### Development Guidelines\n\n- Follow Go best practices\n- Write comprehensive tests\n- Update documentation\n- Ensure all linters pass\n- Use conventional commit messages\n\n## 📄 License\n\nThis project is licensed under the MIT License - see the [LICENSE](LICENSE) file for details.\n\n## 🙏 Acknowledgments\n\n- [Gorilla Mux](https://github.com/gorilla/mux) - HTTP router\n- [Cobra](https://github.com/spf13/cobra) - CLI framework\n- [SQLx](https://github.com/jmoiron/sqlx) - SQL toolkit\n- [Egui](https://github.com/emilk/egui) - Rust GUI framework\n\n---\n\n\u003cdiv align=\"center\"\u003e\n\n**Made with ❤️ by the JCloud Team**\n\n[⭐ Star this repo](https://github.com/JIIL07/jcloud) • [🐛 Report Bug](https://github.com/JIIL07/jcloud/issues) • [💡 Request Feature](https://github.com/JIIL07/jcloud/issues)\n\n\u003c/div\u003e\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjiil07%2Fjcloud","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjiil07%2Fjcloud","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjiil07%2Fjcloud/lists"}