jtremback / avocado

42 stars 11 forks source link

Make sure Express http servers and clients work #4

Open jtremback opened 8 years ago

jtremback commented 8 years ago

All of the magic happens in ./offchain/logic.js/. logic.js is designed to be called by the http servers in ./offchain/servers/ when they receive http calls from the CLI and the counterparty.

Currently, logic.js is being tested by consuming a fake server created in ./offchain/test/setup.js by the function fakePostFactory. This simulates the http servers and the internet and lets two instances of logic.js talk to each other.

We need to make sure that the actual http servers work as well. This may have some interplay with https://github.com/jtremback/avocado/issues/3, as we may want to create a shell script or something else that spawns two whole instances of the entire app and has them talk to each other over localhost.