https://github.com/gsans/amplify-analytics-app-react
Using Analytics category with AWS Amplify
https://github.com/gsans/amplify-analytics-app-react
analytics aws aws-amplify pinpoint
Last synced: 6 months ago
JSON representation
Using Analytics category with AWS Amplify
- Host: GitHub
- URL: https://github.com/gsans/amplify-analytics-app-react
- Owner: gsans
- Created: 2019-06-23T15:30:08.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2023-01-04T00:54:11.000Z (almost 3 years ago)
- Last Synced: 2025-02-11T14:22:52.258Z (8 months ago)
- Topics: analytics, aws, aws-amplify, pinpoint
- Language: JavaScript
- Homepage:
- Size: 3.25 MB
- Stars: 0
- Watchers: 2
- Forks: 1
- Open Issues: 21
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Using Analytics category with AWS Amplify
This starter shows how to use Analytics with AWS Amplify. Analytics features: record event.
[View Demo](https://master.d3bh9kt86fmt9u.amplifyapp.com)
## Deploy with the AWS Amplify Console
The AWS Amplify Console provides hosting for fullstack serverless web apps. [Learn more](https://console.amplify.aws). Deploy this app to your AWS account with a single click:
[](https://console.aws.amazon.com/amplify/home#/deploy?repo=https://github.com/gsans/amplify-analytics-app-react)
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:/amplify-analytics-app-react.gitcd amplify-analytics-app-react && npm install
```2. 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.
3. 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 "{}" --awsInfo "{}" --yesSuccessfully added environment from your project
```3. 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
```4. Run locally
```
npm start
```