The Article - How to create an Image Uploader using React and Cloudinary.
The Demo is live on React-Firebase.
This Web Application was bootstrapped with Create React App.
git clone https://github.com/DeolaJ/react-firebase.git
cd react-firebase
yarn install
npm install -g firebase-tools
firebase login
firebase init
cd react-firebase/functions
npm install
To run this project, you need a Cloudinary account. You can sign up with Cloudinary. Add cloudinary variables to your cloud functions by running,
firebase functions:config:set cloudinary.apikey="// your api key" cloudinary.cloudname="// your cloudname" cloudinary.apisecret="// your apisecret"
Check the /sampledotenv file, and create an .env file using that sample.
Add your Firebase app config to the .env file
yarn start
Runs the app in the development mode.
Open http://localhost:3000 to view it in the browser.
The page will reload if you make edits.
You will also see any lint errors in the console.
yarn build
Builds the app for production to the build
folder.
It correctly bundles React in production mode and optimizes the build for the best performance.
The build is minified and the filenames include the hashes.
Your app is ready to be deployed!
See the section about deployment for more information.