-
Notifications
You must be signed in to change notification settings - Fork 2
Create your 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
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
.
The first dependency you'll need to provide is a version of Boost >= 1.59
.
Once Boost is installed, you can install the cpp-netlib, the framework that provides our http server.
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.
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
TODO