Giter VIP home page Giter VIP logo

voting-booth's Introduction

voting-booth tests_badge

Agora-core-view contais the whole interface for sequent v3, and it's developed with AngularJS.

Installation

You need to install node.js. This project has been tested to work with node.js v0.10.31. You can install it with your favourite package manager (apt-get for example) or install it from the web and follow the instructions in the README (note, it requires gcc-g++ and other dependencies):

wget http://nodejs.org/dist/v0.10.31/node-v0.10.31.tar.gz
tar zxf node-v0.10.31.tar.gz
cd node-v0.10.31
./configure && make && sudo make install
sudo chown -R `whoami` ~/.npm

You need also to install globally grunt and yarn:

sudo npm install -g grunt-cli grunt yarn

After that, you can install the sequent-core-view javascript dependencies:

yarn

Once that's done, you have 3 simple Grunt commands available:

grunt serve   #This will run a development server with watch & livereload enabled.
grunt test    #Run local unit tests.
grunt build   #Places a fully optimized (minified, concatenated, and more) in /dist

You might also need to install chrome browser for some of the tests performed by grunt test. For example, in Ubuntu:

sudo apt-get install chromium-browser
echo 'export CHROME_BIN=chromium-browser' >> ~/.bashrc
. ~/.bashrc 

Generator Note

Agora core view repository, using angular. It's generated using https://github.com/cgross/generator-cg-angular , take a look at the README.md file in there for more information about the structure and how to create new angular services, modules, directives, etc.

Unit testing

To execute the unit tests, run:

grunt test

Testing (E2E)

End to end testing executes tests in a browser instance. It requires a set of dependencies that are updated in package.json (protractor related), so if you executed npm install it should be fine.

Additionally, you should assure that you have an updated global protractor installed. To do so, you can execute the following commands as root:

npm install webdriver-manager
webdriver-manager update

Now we're ready to execute the E2E tests. To do so, you need to launch three commands in three different terminals. The first one launches in background an http server serving the static app in background. To do so, execute:

grunt serve

In another terminal, execute selenium web driver, the web browser where the tests will be executed:

webdriver-manager start

NOTE: do not press key in this terminal after executing this command unless you want to stop the web driver.

In a third terminal, we will launch the E2E unit tests:

protractor e2e.conf.js

License

Copyright (C) 2015 Sequent Tech Inc and/or its subsidiary(-ies). Contact: [email protected]

This file is part of the sequent-core-view module of the Sequent Tech project.

This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.

Commercial License Usage Licensees holding valid commercial Sequent Tech project licenses may use this file in accordance with the commercial license agreement provided with the Software or, alternatively, in accordance with the terms contained in a written agreement between you and Sequent Tech Inc. For licensing terms and conditions and further information contact us at [email protected] .

GNU Affero General Public License Usage Alternatively, this file may be used under the terms of the GNU Affero General Public License version 3 as published by the Free Software Foundation and appearing in the file LICENSE.AGPL3 included in the packaging of this file, or alternatively found in http://www.gnu.org/licenses/.

External libraries This program distributes libraries from external sources. If you follow the compilation process you'll download these libraries and their respective licenses, which are compatible with our licensing.

voting-booth's People

Contributors

danigm avatar dependabot[bot] avatar edulix avatar findeton avatar virako avatar

Stargazers

 avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

voting-booth's Issues

๐Ÿž dynamic translation issues

The dynamic translation feature is unstable.

For example, see this election:

  • It doesn't load the dynamic translations at all on firefox on Mac.
  • On other browsers it works for the start screen (example "avBooth.stepsToVote") but not on other screens
  • For example on the review screen the title ("avBooth.reviewScreen.title") is only translated when the lang is changed.
  • But the description ("avBooth.reviewScreen.descriptionNoAudit") is not translated even when the lang is changed, maybe because it's html.

Tasks

Tasks

Master PRs

  1. bug
    Findeton
  2. bug
    Findeton

Stable PRs (9.0.x)

  1. bug
    Findeton
  2. bug
    Findeton

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.