GithubHelp home page GithubHelp logo

tinanemati / react-flask Goto Github PK

View Code? Open in Web Editor NEW
0.0 1.0 0.0 202 KB

An Application with React Frontend and Python Backend for file uploads

HTML 36.00% CSS 8.30% JavaScript 28.76% Python 26.94%

react-flask's Introduction

React-Flask File Upload

This application allows the user to upload files to their web applicaton.

The user will be invoked to import a file from the website, after the file has been uploaded successfuly, we can see it in the upload folder of the flask backend.

How to run the application

  1. Set Up the Backend: Make sure you have Python and Flask installed on your system. If not, install them using pip: pip install flask

  2. Create the Uploads Folder: Create a folder named "uploads" in the same directory as your app.py file. This folder will be used to store the uploaded files

  3. Run the flask backend by running the app.py file as follows: python app.py

  4. Set up the Frontend: Make sure you have Node.js, npm and axios dependency installed

    • You can install the dependency using: npm install axios
  5. Run the frontend: npm start

    • The react app will be available at http://localhost:3000/

How to test the functionality of the application

  • Select one or more files to upload using file input and click the "upload button"

    • if the upload is successful, you should see a success message
    • if there was an issue, an error messsage displays on
  • Check the "uploads" folder, in the server directory to ensure that the files have been uploaded and successfully saved.

react-flask's People

Contributors

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