项目作者: caioariede

项目描述 :
Uber-like project in React Native
高级语言: JavaScript
项目地址: git://github.com/caioariede/uber-react.git
创建时间: 2017-02-19T14:24:35Z
项目社区:https://github.com/caioariede/uber-react

开源协议:

下载


uber-react

Uber-like project in React Native

configuration

File: .env
Create a .env file with the following settings:

  1. apiKey = "<firebase config>"
  2. authDomain = "<firebase config>"
  3. databaseURL = "<firebase config>"
  4. storageBucket = "<firebase config>"
  5. messagingSenderId = "<firebase config>"
  6. mapBoxAccessToken = "<Access Token for MapBox Directions API>"

All these credentials you get from either Firebase or MapBox websites.

File: fake_drivers/serviceAccountCredentials.json

Get it from Firebase Service Accounts:

https://console.firebase.google.com/project/_/settings/serviceaccounts/adminsdk

running

  1. react-native run-ios

For the fake drivers:

  1. cd fake_drivers
  2. pip install -r requirements.txt

then

  1. python fake_drivers.py <your latitude>,<your longitude>

Do not forget to place the serviceAccountCredentials.json file in the same directory as described in the installation section