Giter VIP home page Giter VIP logo

jonkirathe / drag-drop-upload-app Goto Github PK

View Code? Open in Web Editor NEW
9.0 1.0 0.0 165 KB

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.

Home Page: https://filedropapp.vercel.app/

HTML 7.25% TypeScript 89.53% SCSS 3.22%
angular angular18 drag-and-drop draggable-elements input-output material-ui ng-container ng-content ngtemplate ngtemplateoutlet

drag-drop-upload-app's Introduction

DragDropUploadApp

Live: DragDropUploadApp

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]].

drag-drop-upload-app's People

Contributors

jonkirathe avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.