Profile | download (kb/s) | upload (kb/s) | latency (ms) |
---|---|---|---|
Native | 0 | 0 | 0 |
GPRS | 50 | 20 | 500 |
56K Dial-up | 50 | 30 | 120 |
Mobile EDGE | 240 | 200 | 840 |
2G Regular | 250 | 50 | 300 |
2G Good | 450 | 150 | 150 |
3G Slow | 780 | 330 | 200 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import axios from "axios"; | |
class HttpService { | |
constructor() { | |
const token = window.localStorage.getItem("token"); | |
const service = axios.create({ | |
baseURL: process.env.REACT_APP_API_URL, | |
headers: token | |
? { | |
Authorization: `Bearer ${token}`, |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* @flow | |
*/ | |
import RNFetchBlob from 'react-native-fetch-blob' | |
const DocumentDir = RNFetchBlob.fs.dirs.DocumentDir | |
const storagePath = `${DocumentDir}/persistStore` | |
const encoding = 'utf8' |
Based off of: http://docs.sequelizejs.com/en/1.7.0/articles/express/
Create and initialize your a directory for your Express application.
$ mkdir sequelize-demo