No description, website, or topics provided.
Haskell
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
script
src
.gitignore
Nemesis
readme.md

readme.md

Miku application development guide

Summary

This template shows how a Miku application can incorporate the following features

  • Sandboxing
  • Auto reload
  • Auto update the browser (Chrome on Mac in this example)
  • Usage of moe HTML combinator
  • Usage of shakespeare-css

Install Guide

Install sandbox mechanism

cabal install virthualenv

Get Miku project template

git clone https://github.com/nfjinjing/miku-template.git $your_app_name
cd $your_app_name

Clean the git repository

delete .git directory, then initialize the VCS of your choice.

Sandbox the application

virthualenv
source .virthualenv/bin/activate

Install libraries

cabal install haskell-src
cabal install miku
cabal install hack2-interface-wai
cabal install nemesis
cabal install shakespeare-css
cabal install moe
cabal install enumerator

Install the latest wai-handler-devel

pushd .

mkdir vendor
cd vendor
git clone https://github.com/yesodweb/wai.git

cd wai/wai-handler-devel
cabal install

popd

Miku Run

Start the server

nemesis rs

Change port

vi src/runDevelServer.hs

Notes

  • press q then Enter to exit the reloading process.
  • run deactivate to exit the sandbox
  • the reloader only works within src/, so your app's current directory is src/, keep that in mind.
  • only tested on GHC 7.2.2