项目作者: zheeeng

项目描述 :
Google Contacts Demo
高级语言: TypeScript
项目地址: git://github.com/zheeeng/google-contacts.git
创建时间: 2018-07-23T07:53:38Z
项目社区:https://github.com/zheeeng/google-contacts

开源协议:MIT License

下载


Google Contacts

Greenkeeper badge
language
license
travis
demo

Google Contacts Demo

Demo Site

https://contacts.zheeeng.me

Setup

Prerequisite

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

Cli

Take the yarn as the example:

git clone this repo and then install dependencies:

  1. > git clone https://github.com/zheeeng/Google-contacts.git
  2. > cd Google-contacts
  3. > yarn

Provide these keys as environment variables:

  1. > REACT_APP_GOOGLE_APP_KEY=<YOUR_GOOGLE_APP_KEY> REACT_APP_GOOGLE_CLIENT_ID=<YOUR_GOOGLE_CLIENT_ID> yarn start

Build

  1. > REACT_APP_GOOGLE_APP_KEY=<YOUR_GOOGLE_APP_KEY> REACT_APP_GOOGLE_CLIENT_ID=<YOUR_GOOGLE_CLIENT_ID> yarn build

Note

  1. App requires you login with Google Account and Chrome will warns you insecure accessing, just bypass it and authorize your consent.
  2. git ignores /public/CNAME file, it means you could add your own /public/CNAME file for hosting your site using github pages.