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 #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.
All of the magic happens in
./offchain/logic.js/.logic.jsis designed to be called by the http servers in./offchain/servers/when they receive http calls from the CLI and the counterparty.Currently,
logic.jsis being tested by consuming a fake server created in./offchain/test/setup.jsby the functionfakePostFactory. This simulates the http servers and the internet and lets two instances oflogic.jstalk to each other.We need to make sure that the actual http servers work as well. This may have some interplay with #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.