It's a browser extension that allows you to upload content to the cloud and get a url link to share or use in developing applications.
- Git and Node need to be installed on the local system
- Should have a Chrome browser
- Open the terminal, and clone the repository
git clone https://github.com/raghavdhingra/Uploadcare-Chrome-Extension.git
- Install the dependencies of the project
npm install
-
Rename
.env.example
file to.env
file. This will prevent the inline script build by react build command and helps in maintaining the Content Security Policy. -
Build the react project to plain HTML, CSS and Javascript files by:
npm run build
This will create a build folder in the base directory of the project.
- Open the Chrome Browser, and type:
chrome://extensions
- Click on Load Unpacked button and select the same build folder It will be ready to use.
For updating the extension, or to add up a feature, run the project on the localhost by typing:
npm start
INLINE_RUNTIME_CHUNK=false npm run build
This will initiate a localhost server on the browser tab and you can update the functionality.
To test within the chrome extension tab, you need to build the application and click refresh package button on the chrome extension page.