|
Run This Tutorial LocallyBefore going further, you may want to inform yourself about the basic prerequisites, both knowledge and equipment, you need to make the best use of this tutorial This tutorial is cabalized. You can install and run it simply by doing cabal install happs-tutorial The cabal installation may take up to an hour, mainly because the HAppS-Server installation is slow, but it should succeed in one shot. This is a symptom of the HAppS slow linking bug. If you've never used cabal install or need more detailed info....
To run the app, either do ./hackInGhci.sh and then execute runInGhci inside Main.hs, or recompile the executable using ./runServerWithCompileNLink.sh. Really you only need to be inside ghci if you are experiencing the slow link time issue. This isn't a problem at time of writing but seems to crop up from time to time. Shutdown with ctrl-c. You should now be able to browse this tutorial offline by running the executable, and opening http://localhost:5001 in your browser. You may also want to start HAppS on boot. Next up is the HAppS server main function. |