Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Hackday app using Webmachine and Ember.js

branch: master

Fetching latest commit…

Octocat-spinner-32-eaf2f5

Cannot retrieve the latest commit at this time

Octocat-spinner-32 priv
Octocat-spinner-32 src
Octocat-spinner-32 .gitignore
Octocat-spinner-32 Makefile
Octocat-spinner-32 README.md
Octocat-spinner-32 rebar
Octocat-spinner-32 rebar.config
Octocat-spinner-32 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.

Something went wrong with that request. Please try again.