An open API service indexing awesome lists of open source software.

https://github.com/pbesteves/react-avatar-upload

This is a React component to allow users to upload avatar images by DnD (Dragging and Dropping) the file in the target area or clicking on it.
https://github.com/pbesteves/react-avatar-upload

avatar jest reactjs styled-components testing-library-react typescript

Last synced: 3 months ago
JSON representation

This is a React component to allow users to upload avatar images by DnD (Dragging and Dropping) the file in the target area or clicking on it.

Awesome Lists containing this project

README

          

# React ``

- [React ``](#react-avatarupload-)
- [About](#about)
- [Running the project](#running-the-project)
- [Running the tests](#running-the-tests)

## About
This is a component for uploading images to be used as Avatars in a Web Application built with React.

It allows users to select an image file by DnD (Dragging and Dropping) an image file onto the upload area, or by click on it and selecting a file from the explorer window.

The technologies used in this project, besides React, are [styled-coponents](https://styled-components.com/) and [Typescript](https://www.typescriptlang.org/).

## Running the project

After clonning this repository all you need to do is run the following commands

```bash
yarn install | npm install
```

```bash
yarn start | npm start
```

## Running the tests

To run the tests simply run the following command inside the project directory.

The testing tools used on this project are [Jest](https://jestjs.io/) and [@testing-library/react](https://testing-library.com/docs/react-testing-library/intro/)

```bash
yarn test | npm run test
```