The following prerequisites are required for this post:
- An AWS account
- NPM
- Clone the project https://github.com/ykethan/Amplify-Chrome-extension.git
- Run
npm install
in the terminal to install dependencies. - Run
npm install -g @aws-amplify/cli
in terminal. - Run
amplify configure
to configure AWS credentials. Please refer to the instruction at Amplify documentation for additional information. - Run
amplify init
in the terminal and fill in the the application information as necessary. - Run
amplify push
- Once the push completes, run
npm run build
then do the following- Open brower and go to extensions
- Enable developer mode by toggling
developer mode
present right side top of the screen. - Click
Load unpacked
and travese to the project folder. - Select the build folder present in the project.
- Open
https://docs.amplify.aws/
in a new tab. - Create a new account in the Cognito login screen. Note that you must provide a valid email, as a verification code will be sent.
- Upon logging in, the page will load a Button at the top.
- Upon selecting the Pick a file button and selecting a picture from your PC, we’ll observe the output as follows.
You can delete your Amplify application if you aren’t going to use it anymore. Run the following command in the terminal at the root of the project.
amplify delete
Note that this action can’t be undone. Once the project is deleted, you can’t recover it. If you need it again, then you must re-deploy it. Delete the extension from the Chrome browser.