Link icloud, spreadsheet, and mapbox, and record iphone's location information & history in spreadsheet.
git clone [email protected]:makobouzu/Find-my-iphone.git
cd find-my-iphone
npm install
touch .env
- PORT
- APPLE_ID
- PASSWORD
- SPREADSHEET_ID
https://docs.google.com/spreadsheets/d/XXXXXXXXXXXXXXXXXXXXXXXXXXX/edit#gid=0
-> SPREADSHEET_ID="XXXXXXXXXXXXXXXXXXXXXXXXXXX"
- SHIFT_WORKSHEET_ID
https://docs.google.com/spreadsheets/d/XXXXXXXXXXXXXXXXXXXXXXXXXXX/edit#gid=0
-> SHIFT_WORKSHEET_ID="0"
Go to Google Cloud Platform -> Create new Project -> Go to "APIとサービス" -> Click "APIとサービスの有効化" -> Enable Google Sheets API
Click "認証情報を作成" -> 使用するAPI=Google Sheets API & アクセスするデータの種類=アプリケーションデータ(いいえ、使用しません) -> Write service account(ロール=編集者) -> "完了"
Click "[email protected]" in サービスアカウント -> Click "鍵を追加(新しい鍵を作成)" in キー -> Download json -> rename credentials.json & mv ./routes
Share E-mail(client_email: [email protected] in credentials.json) in Spreadsheet settings -> 編集者
- Reference
Sign in mapbox -> Copy default public token -> Paste mapboxgl.accessToken in index.js:4
- Reference
cd find-my-iphone
npm run devStart