Giter Club home page Giter Club logo

pixelated-user-agent's Introduction

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 is still rather troublesome and so far it only serves limited functionality.

Running it

The User Agent has 2 components:

  • The Web Ui, which is the the HTML, CSS and JS files served to the browser;
  • 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

Using Vagrant

to install from source:

vagrant up

or

vagrant up source

to install using the pixelated prvidede debian packages:

vagrant up deb 

Installing dependencies for development:

Dependencies are: node, npm, compass (ruby), virtualenv, git

  • debian/ubuntu:
    • sudo apt-get update
    • sudo apt-get install git nodejs-legacy npm python-dev python-virtualenv libffi-dev g++ ruby-dev
    • sudo gem install compass
  • MacOS: Using brew will get you there faster:
    • brew install node ruby phantomjs gnupg
    • sudo gem install compass
    • sudo easy_install virtualenv

Installing the app and running in development mode

  • Next step is cloning the repository with git clone https://github.com/pixelated-project/pixelated-user-agent.git

  • Enter the folder pixelated-user-agent

  • Run the setup ./install_pixelated.sh

  • After it finishes, you can activate the virtualenv with source service/.virtualenv/bin/activate

  • The user agent will be available with the command pixelated-user-agent, running it you will be prompted for the credentials and the user agent will be started at localhost:3333


Service

  • Enter the service folder

  • Create the virtualenv with virtualenv .virtualenv

  • Activate it with source .virtualenv/bin/activate

  • Install the dependencies with pip install -r requirements.txt

    • Install the test dependencies with pip install -r test_requirements.txt
  • Run the setup with python setup.py develop

  • Then, to run use pixelated-user-agent on the command line

You need an account in a Leap provider with support for email to test pixelated, if you don't have one yet, you can register with the following command pixelated-user-agent --register your.provider.org desired_account

Web Ui

  • Enter the web-ui folder

  • Run:

$ npm install
$ bower install

If you don't have bower installed globally, change the third line to $ ./node_modules/bower/bin/bower install

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.

And that's it.


Installing the debian package

The debian package is currently only available in our repository. To use it you have to add it to your sources list:

echo "deb http://packages.pixelated-project.org/debian wheezy-snapshots main" > /etc/apt/sources.list.d/pixelated.list
echo "deb http://packages.pixelated-project.org/debian wheezy-backports main" >> /etc/apt/sources.list.d/pixelated.list
echo "deb http://packages.pixelated-project.org/debian wheezy main" >> /etc/apt/sources.list.d/pixelated.list

apt-key adv --keyserver pool.sks-keyservers.net --recv-key 287A1542472DC0E3

apt-get update

apt-get install pixelated-user-agent

Warning: Currently there are some challenges with the dependencies. To make the user agent work see instructions used to build the docker image: Dockerfile.

pixelated-user-agent's People

Contributors

ackackack avatar albogabriel avatar bwagnerr avatar ckluente avatar dudadornelles avatar fabiopio avatar fbernitt avatar gutobenn avatar lieblingswelt avatar lisajunger avatar lqust avatar mmircea16 avatar neissi avatar olabini avatar pedrovereza avatar pixelated-kanban avatar pmaia avatar shyba avatar varac avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.