summaryrefslogtreecommitdiff
path: root/INSTALL.md
blob: ce17f39f49f150cf36ce719538d3000773f3e98d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
# Installation #

## TL;DR ##

Install git, ruby, rubygems, bundler and couchdb on your system. Then run

```
git clone git://github.com/leapcode/leap_web.git
cd leap_web
bundle install
git submodule init
git submodule update
bundle exec rails server
```

## Requirements ##

The webapp only depends on very basic ruby packages and installs the other requirements as gems through bundler.

### Packages ###

The following packages need to be installed:

* git
* ruby1.9.3
* rubygems
* couchdb

### Code ###

Simply clone the git repository:

```
  git clone git://github.com/leapcode/leap_web.git
  cd leap_web
```

### Gems ###

We install most gems we depend upon through [bundler](http://gembundler.com). However the bundler gem needs to be installed and the `bundle` command needs to be available to the user used for deploy.

### Bundler ###

Install all the required gems:
```
  bundle install
```

## Setup ##

### SRP submodule ###

We currently use a git submodule to include srp-js. This will soon be replaced by a ruby gem. but for now you need to run

```
  git submodule init
  git submodule update
```

### Provider Information ###

The leap client fetches provider information via json files from the server.
If you want to use that functionality please add your provider files the public/config directory.

## Running ##

```
bundle exec rails server
```