development-proxy
install
npm install development-proxy -S
proxy your remote server for your web development mock resources if you create some new features cache server requests for developing offline
USAGE
const path = ;const chalk = ;const http = ;const proxy = ; const proxyPort = 3003;const cacheDir = path; const config = api: local: `http://localhost:/-api-/` remote: 'http://dev.example.com/' cacheOfflineOnly: true cacheDir dq: local: `http://localhost:/-dq-/` remote: 'http://dq.example.com/' cacheOfflineOnly: true cacheDir assets: local: `http://localhost:/-assets-/` remote: 'http://example.s3.amazonaws.com/' cacheOfflineOnly: false cacheDir ; const server = ; http; console; // eslint-disable-line no-console