Google Contacts Demo
Make sure you have got the Google APP Key and a Client ID, you may get them through the following link:
https://console.developers.google.com/start/api?id=people.googleapis.com&credential=client_key
Take the yarn
as the example:
git clone this repo and then install dependencies:
> git clone https://github.com/zheeeng/Google-contacts.git
> cd Google-contacts
> yarn
Provide these keys as environment variables:
> REACT_APP_GOOGLE_APP_KEY=<YOUR_GOOGLE_APP_KEY> REACT_APP_GOOGLE_CLIENT_ID=<YOUR_GOOGLE_CLIENT_ID> yarn start
> REACT_APP_GOOGLE_APP_KEY=<YOUR_GOOGLE_APP_KEY> REACT_APP_GOOGLE_CLIENT_ID=<YOUR_GOOGLE_CLIENT_ID> yarn build
- App requires you login with Google Account and Chrome will warns you insecure accessing, just bypass it and authorize your consent.
- git ignores
/public/CNAME
file, it means you could add your own/public/CNAME
file for hosting your site using github pages.