Skip to content

abachuk/uploading-files-react-node

Repository files navigation

Uploading files with React.js and Node.js

This repo is for my blog Uploading files with React.js and Node.js. Many people found my code examples to be confusing, so I created this repo to demo how everything comes together.

I didn't add redux in this one, but if you want it - let me know.

Example with Next.js to simplify the setup. Same can be applied to any React+Node app. If you don't have the cloudinary account, use this link (affiliate) to signup for free or just go to cloudinary.com

How to run:

  1. Clone the repo and cd into the directory
  2. npm install
  3. npm run dev to start it locally
  4. Add you cloudinary API keys in server.js file
  5. open http://localshost:3000
  6. upload any file, this example expects image file type