Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
tree: e75c5d712b
Fetching contributors…

Cannot retrieve contributors at this time

56 lines (38 sloc) 2.2 kb

Ohm

Ohm is a web framework for the OCaml language, open sourced under the MIT license. It is currently in alpha, with the public beta release scheduled for September 2012.

Installation

To use the framework, you must install the ohm command-line tool.

Place files install.sh and run.ml in a directory, then run ./install.sh with administrator privileges :

wget https://raw.github.com/VictorNicollet/Ohm/master/install.sh
wget https://raw.github.com/VictorNicollet/Ohm/master/run.ml 
sudo ./install.sh

Once this is done, you can create a brand new project by using the ohm init command :

ohm init my-project

This creates directory my-project, downloads a fresh and up-to-date copy of the Ohm framework, sets up the files required for a minimalistic project, and compiles it.

Requirements

Ohm requires OCaml 3.12.0 or later, as well as ocamlfind and ocamlbuild. It also relies on the following OCaml libraries :

There may be attempts to eliminate somme of these requirements later on.

Ohm is designed to sit behind any FastCGI-enabled server, but has only been tested with Apache so far.

Ohm uses CouchDB as its primary database (there is work underway to allow the use of PostgreSQL as well).

The asset pipeline uses LESS CSS and Coffeescript.

On a debian system, use the following command-line to grab all the packages required to run Ohm :

apt-get install ocaml-nox ocaml-findlib ocamldsort ocaml-native-compilers \
    libsha-ocaml-dev libbatteries-ocaml-dev libocamlnet-ocaml-dev \
    libcurl-ocaml-dev libxmlm-ocaml-dev libapache2-mod-fastcgi make \
    couchdb coffeescript node-less supervise
Jump to Line
Something went wrong with that request. Please try again.