Code Monkey home page Code Monkey logo

fileupload-demo-react's Introduction

React File Upload Form Application

This application is written in React and tried to copy the functionality of the Angular 2 front end that is located in the fileupload-demo-angular2 project.

This application is paired with a Spring Framework Rest Controller back end to persist the uploaded file and metadata (found in the fileupload-demo-backend repository).

Running the React front end

Prior to running the application, you need to start the back-end web service (see Readme.md in the fileupload-demo-backend repository).

NOTE: This application was created with the create-react-app utility.

# clone this repo
$ git clone https://github.com/cdoremus/fileupload-demo-react.git

# change directory
$ cd fileupload-demo-react

# install the dependencies with npm
$ npm install

# start the server
$ npm start

The application should then be running at http://localhost:3000.

See the fileupload-demo-angular2 project for details on the application structure and requirements implementation.

Unit tests

Unit test were created with Jest. They are located in each component's folder with a .test.js extension. Run them using the following commands:

# run tests
npm test
# to run in watch mode, select 'a' when the Jest command-line interface is launched

# run tests with a code coverage report
npm test -- --coverage

Improvements

There are improvements that need to be done in this project:

  • End-to-end tests need to be implemented
  • No About page is shown or navigation demonstrated

Acknowlegements

This project used the create-react-app starter.

fileupload-demo-react's People

Contributors

cdoremus avatar

Watchers

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