Skip to content

Create your application

Plaristote edited this page Mar 4, 2016 · 2 revisions

Create a Crails Application

In this tutorial, we'll see:

  • What dependencies Crails needs you to install in your system
  • How to install Crails on your system
  • How to create and launch a simple Crails application

Install Crails' dependencies

Ruby

While Crails server completely run over C++, its asset pipeline and many other utilities are based on guard, a tool that watches files and re-compile your assets, your build targets, or run your tests when changes are detected.

Note that your production server doesn't need to provide ruby. This is only a development dependency. Make sure your development environment provides a version of ruby >= 1.9.

Boost

The first dependency you'll need to provide is a version of Boost >= 1.59.

cpp-netlib

Once Boost is installed, you can install the cpp-netlib, the framework that provides our http server.

Optional dependencies

There are a few other libraries that you may need to install before compiling Crails, if you want to use additional modules. See the respective documentation for each module in order to find out what more you need to install.

Install Crails

Using the following commands, you will clone the Crails repository, configure the project, build it and install it on your system.

$> git clone https://github.com/Plaristote/crails.git
$> mkdir crails/build
$> cd crails/build
$> cmake ..
$> make && sudo make install

Create a Crails application

TODO

Clone this wiki locally