Skip to content

gsans/amplify-analytics-app-react

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Using Analytics category with AWS Amplify

This starter shows how to use Analytics with AWS Amplify. Analytics features: record event.

View Demo

Deploy with the AWS Amplify Console

The AWS Amplify Console provides hosting for fullstack serverless web apps. Learn more. Deploy this app to your AWS account with a single click:

amplifybutton

The Amplify Console will fork this repo in your GitHub account, and then build and deploy your backend and frontend in a single workflow. Your app will be available at https://master.appid.amplifyapp.com.

Run locally with the Amplify CLI

  1. Clone the repo that was just forked in your account
git clone git@github.com:<username>/amplify-analytics-app-react.git

cd amplify-analytics-app-react && npm install
  1. Import the backend environment deployed by the Amplify Console to your repo (the amplify/team-provider.json file contains information on all backend environments in your AWS account). The GIF below shows how you to copy the amplify env import command from the Amplify Console.

  1. Paste this command into your terminal at the root of your repo. You should see the amplify/team-provider.json updated with a backend named amplify.
amplify env import --name amplify --config "{<stack>}" --awsInfo "{<profile>}" --yes

Successfully added environment from your project
  1. Initialize the Amplify CLI with the amplify environment.
amplify init
? Do you want to use an existing environment? Yes
? Choose the environment you would like to use: (Use arrow keys)
> amplify
  1. Run locally
npm start

About

Using Analytics category with AWS Amplify

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published