public
Description: The source code repository for twoorl.com
Homepage: http://twoorl.com
Clone URL: git://github.com/yariv/twoorl.git
twoorl /
name age message
file .gitignore Tue Jun 17 20:58:12 -0700 2008 Merge branch 'my-ngerakines' Conflicts: .git... [yariv]
file COPYING Sat May 31 15:46:18 -0700 2008 first import from svn [yariv]
file Emakefile Mon Jul 21 04:21:28 -0700 2008 Merge branch 'master' of git@github.com:edbond/... [Eduard Bondarenko]
file Makefile Mon Jun 09 21:23:34 -0700 2008 Updating the readme and makefile, no more need ... [ngerakines]
file README.txt Mon Jun 09 21:23:34 -0700 2008 Updating the readme and makefile, no more need ... [ngerakines]
directory ebin/ Mon Jun 09 21:19:34 -0700 2008 Added mnesia, mysql and compile start phases. M... [ngerakines]
directory elib/ Mon Jul 21 04:21:28 -0700 2008 Merge branch 'master' of git@github.com:edbond/... [Eduard Bondarenko]
directory migrations/ Sun Jun 22 11:05:07 -0700 2008 added spam filtering [yariv]
directory src/ Sun Dec 14 18:20:57 -0800 2008 small fix [yariv]
file twoorl.sql Sat May 31 15:46:18 -0700 2008 first import from svn [yariv]
directory www/ Sun Jun 22 16:10:24 -0700 2008 implement toggle twitter checkbox on homepage [yariv]
README.txt
To run Twoorl follow the following steps:

- Get the latest versiona of ErlyWeb (prior to 0.7.1, this would be from trunk) and Yaws
- Install MySQL and create a MySQL database for twoorl.
- Run twoorl.sql to create the Twoorl tables.
- Edit src/twoorl_app.hrl with your appropriate environment variables.
- Compile src/twoorl.erl with 'erlc'.
- Edit yaws.conf to add the ErlyWeb application settings for Twoorl.
- Start Yaws and in the shell, type "twoorl:start()". Alternatively, pass Yaws the parameter "--runmon twoorl".

Cheers!
Yariv

To run in embedded mode:

$ make clean && make
$ erl -sname twoorlapp -setcookie twoorl -mnesia dir "'twoorl.mnesia'" -yaws embedded true -pa ebin -boot start_sasl
1> [application:start(X) || X <- [inets, crypto, mnesia, twoorl]].
[ok, ok, ok, ok]

# Nick Gerakines