sourcecred/scripts
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
..
backend.js Turn on flow for scripts/{backend,build,test}.js (#241) 2018-05-08 14:35:56 -07:00
build.js Turn on flow for scripts/{backend,build,test}.js (#241) 2018-05-08 14:35:56 -07:00
ensure-flow.sh Ensure that flow is used in all js files (#232) 2018-05-07 20:02:19 -07:00
start.js Proxy Webpack dev server through to an API server (#245) 2018-05-08 16:09:37 -07:00
test.js Turn on flow for scripts/{backend,build,test}.js (#241) 2018-05-08 14:35:56 -07:00