summaryrefslogtreecommitdiff
path: root/README.md
blob: 8139367cef7df1e092f92cd84dbc6bf6c320bd11 (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
Pixelated User Agent
====================

This contains the Pixelated User Agent, which is composed of a web UI written as a JavaScript single page app, and a service that provides a REST-ful interface that the UI can use for all User Agent actions. For now, all of these actions are mail-related but this might evolve later. The default service is written to talk to a Pixelated or LEAP provider.

>**The Pixelated User Agent is still in early development state!**

>Some things may not yet work the way you expect it to.
>Setting up the service (as opposed to the fake service or inbox-app) is still rather troublesome and so far it only serves limited functionality.



# Running it
The User Agent is composed of 2 components:
- The Web Ui, which is the the HTML, CSS and JS files served to the browser; and
- The Service component, which is the web service that serves the Web Ui to the browser, provides the REST API which the the Web Ui uses, and integrates with the LEAP or Pixelated provider.

## Quickstart

Dependencies are: node, npm, ruby, bundle, virtualenv, git

Once you have that, run:

```
curl https://raw.githubusercontent.com/pixelated-project/pixelated-user-agent/master/install-pixelated.sh | /bin/bash
```

_____________

## Web Ui
The Web Ui needs to generate the templates and CSS to be served. For that, you need (from inside `./web-ui`) to run the command `./go build` at least once after downloading the code. From here on, you can run `./go watch` to auto-generate the resources as they are changed.

## Service

## Fake Service
This is a Fake Service used for testing the Web Ui. It works as the real service, but mocking the connection to the LEAP/Pixelated provider with a predefined dataset of emails.

To run the Fake Service, run the command `./go server:start` on the terminal. `./go server:restart` restarts the service.

# Setting things up
Before being able to run the Service (the Fake or real), you must first set this components up by installing their dependencies.

## Web Ui
From inside `./web-ui`:
```
$ bundle install
$ npm install
$ bower install
```
If you don't have `bower` installed globaly, change the third line to `$ ./node_modules/bower/bin/bower install`

## Service

## Fake Service
From inside `./fake-service`
```
$ bundle install
```
And that's it.