Skip to content

React application that builds an extension with Amplify resources

Notifications You must be signed in to change notification settings

ykethan/Amplify-Chrome-extension

Repository files navigation

Getting started with Amplify chrome extension

extension

Prerequisites

The following prerequisites are required for this post:

  • An AWS account
  • NPM

Installation Steps:

  1. Clone the project https://github.com/ykethan/Amplify-Chrome-extension.git
  2. Run npm install in the terminal to install dependencies.
  3. Run npm install -g @aws-amplify/cli in terminal.
  4. Run amplify configure to configure AWS credentials. Please refer to the instruction at Amplify documentation for additional information.
  5. Run amplify init in the terminal and fill in the the application information as necessary.
  6. Run amplify push
  7. Once the push completes, run npm run build then do the following

    Load extension into Chrome browser by utilizing the following steps

    1. Open brower and go to extensions
    2. Enable developer mode by toggling developer mode present right side top of the screen.
    3. Click Load unpacked and travese to the project folder.
    4. Select the build folder present in the project.

enabledev

  1. Open https://docs.amplify.aws/ in a new tab.
  2. Create a new account in the Cognito login screen. Note that you must provide a valid email, as a verification code will be sent.

image

  1. Upon logging in, the page will load a Button at the top.
  2. Upon selecting the Pick a file button and selecting a picture from your PC, we’ll observe the output as follows.

image

Cleanup resources

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.

About

React application that builds an extension with Amplify resources

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published