Hackday app using Webmachine and Ember.js
Erlang JavaScript Shell
Switch branches/tags
Nothing to show
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
priv
src
.gitignore
Makefile
README.md
rebar
rebar.config
start.sh

README.md

Webmachine TODOs App

This app showcases the Todos example from Ember.js using Webmachine and MySQL as backend.

The original Javascript code has been adapted to use Webmachine as backend and to be able to persist state on the server.

This project was part of a hackday at Liip. The app was build by Alvaro Videla and Vedran Zgela.

Setup

Simply clone the project and then run make:

$ git clone git://github.com/videlalvaro/todos_hackday.git todos
$ cd todos
$ make

Then create your own configuration file by copying the sample one and then editing the MySQL configuration:

$ cp ./priv/hackday.conf.sample ./priv/hackday.conf

MySQL Setup

Create the following table:

CREATE TABLE `todo` (
  `slug` char(32) NOT NULL,
  `title` varchar(256) DEFAULT NULL,
  `isDone` tinyint(1) NOT NULL DEFAULT '0',
  PRIMARY KEY (`slug`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8

Running the app

Cd into the todos folder and run the following command:

$ ./start.sh

Then open http://localhost:8000.