sourcecred/config
William Chargin 9ea1f981aa
Proxy Webpack dev server through to an API server (#245)
Summary:
This way, our frontend can talk to a backend that can read from the
filesystem (among other things).

Paired with @decentralion.

Test Plan:
```
$ yarn backend
$ SOURCECRED_DIRECTORY=/tmp/srccrd yarn start
$ # verify that the browser looks good
$ mkdir /tmp/srccrd
$ echo hello >/tmp/srccrd/world
$ curl localhost:3000/api/v1/data/world
hello
$ curl localhost:4000/api/v1/data/world
hello
```

wchargin-branch: webpack-proxy
2018-05-08 16:09:37 -07:00
..
jest Ensure that flow is used in all js files (#232) 2018-05-07 20:02:19 -07:00
babel.js Turn on flow for scripts/{backend,build,test}.js (#241) 2018-05-08 14:35:56 -07:00
env.js Turn on flow for config/env.js (#243) 2018-05-08 14:56:06 -07:00
paths.js Proxy Webpack dev server through to an API server (#245) 2018-05-08 16:09:37 -07:00
polyfills.js Ensure that flow is used in all js files (#232) 2018-05-07 20:02:19 -07:00
travis.js Ensure that flow is used in all js files (#232) 2018-05-07 20:02:19 -07:00
webpack.config.backend.js Ensure that flow is used in all js files (#232) 2018-05-07 20:02:19 -07:00
webpack.config.dev.js Ensure that flow is used in all js files (#232) 2018-05-07 20:02:19 -07:00
webpack.config.prod.js Ensure that flow is used in all js files (#232) 2018-05-07 20:02:19 -07:00
webpackDevServer.config.js Ensure that flow is used in all js files (#232) 2018-05-07 20:02:19 -07:00