Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/jonkirathe/drag-drop-upload-app
This Angular 18 app is a fun and interactive image upload and preview tool. The app consists of two main components: UploadComponent and PreviewComponent. The UploadComponent allows users to select or drag and drop images for upload.
https://github.com/jonkirathe/drag-drop-upload-app
angular angular18 drag-and-drop draggable-elements input-output material-ui ng-container ng-content ngtemplate ngtemplateoutlet signals zoneless
Last synced: 4 days ago
JSON representation
This Angular 18 app is a fun and interactive image upload and preview tool. The app consists of two main components: UploadComponent and PreviewComponent. The UploadComponent allows users to select or drag and drop images for upload.
- Host: GitHub
- URL: https://github.com/jonkirathe/drag-drop-upload-app
- Owner: jonkirathe
- Created: 2024-06-13T20:43:47.000Z (5 months ago)
- Default Branch: master
- Last Pushed: 2024-08-08T14:45:47.000Z (3 months ago)
- Last Synced: 2024-08-08T17:15:31.138Z (3 months ago)
- Topics: angular, angular18, drag-and-drop, draggable-elements, input-output, material-ui, ng-container, ng-content, ngtemplate, ngtemplateoutlet, signals, zoneless
- Language: TypeScript
- Homepage: https://filedropapp.vercel.app/
- Size: 161 KB
- Stars: 10
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# DragDropUploadApp
[![Love Angular badge](https://img.shields.io/badge/angular-love-blue?logo=angular&angular=love)](https://www.github.com/angular/angular)
Live: [DragDropUploadApp](https://filedropapp.vercel.app/)
## Overview
DragDropUploadApp is an Angular 18 application designed to provide a seamless and interactive experience for uploading and previewing images. The app leverages Angular's powerful features and the Angular CDK Drag and Drop module to create a user-friendly interface.## Components
### UploadComponent
- **Functionality**: Allows users to select or drag and drop images for upload.
- **Features**:
- Drag-and-drop zone.
- File input field.
- Emits an event when new images are uploaded.### PreviewComponent
- **Functionality**: Displays a preview of uploaded images.
- **Features**:
- Utilizes Angular’s CDK Drag and Drop module for rearranging images.
- Renders images in a responsive grid layout.### AppComponent
- **Functionality**: Manages image state and passes it to the PreviewComponent.
- **Features**:
- Handles image uploads using Angular signals.
- Includes placeholder, loading, and defer directives for a better user experience.## Development
### Development Server
Run `ng serve` for a dev server. Navigate to `http://localhost:4200/`. The application will automatically reload if you change any of the source files.### Code Scaffolding
Run `ng generate component component-name` to generate a new component. You can also use `ng generate directive|pipe|service|class|guard|interface|enum|module`.### Build
Run `ng build` to build the project. The build artifacts will be stored in the `dist/` directory.### Running Unit Tests
Run `ng test` to execute the unit tests via Karma.### Running End-to-End Tests
Run `ng e2e` to execute the end-to-end tests via a platform of your choice. To use this command, you need to first add a package that implements end-to-end testing capabilities.## Additional Information
### Features
- **Drag and Drop**: Users can drag and drop images for upload.
- **Responsive Design**: The app is designed to be responsive and works well on various devices.
- **Image Rearrangement**: Users can rearrange images using drag-and-drop functionality.
- **State Management**: Efficient state management using Angular signals.
- **User Experience**: Includes placeholder, loading, and defer directives for a smooth user experience.### Technologies Used
- **Angular**: Framework for building the application.
- **Angular CDK**: For drag-and-drop functionality.
- **TypeScript**: Primary language for development.
- **SCSS**: For styling the application.### Project Structure
- **src/app**: Contains the main application code.
- **components**: Contains the UploadComponent and PreviewComponent.
- **services**: Contains services for handling image uploads and state management.
- **models**: Contains TypeScript interfaces and models used in the application.
- **assets**: Contains static assets like images and styles.
- **environments**: Contains environment-specific configurations.### Contributing
If you would like to contribute, please fork the repository and use a feature branch. Pull requests are warmly welcome.### License
This project is licensed under the MIT License - see the LICENSE file for details.### Contact
For any inquiries or feedback, please contact the project maintainer at [[email protected]].