Giter Club home page Giter Club logo

eva-web's Introduction

European Variation Archive (EVA) Web Front-end Build Status

Web front-end for the European Variation Archive (EVA), developed using technologies such as JavaScript and HTML5.

Dependencies

The EVA Web App has the following dependencies

  • Jsorolla
  • EBI-Framework

Jsorolla and EBI-Framework libraries are attached with EVA as submodules.

Build

Go to your web root directory and run the following commands:

git clone https://github.com/EBIvariation/eva-web.git

cd eva-web

git checkout master 

git submodule init

git submodule update

We use Node.js version >= 7.0, npm modules and Grunt to build EVA web app.

eva-web/package.json lists the dependency npm modules to be installed.

Note: npm modules should be installed in both eva-web and in Jsorolla.

Run following command inside eva-web and lib/jsorolla folders:

npm install

eva-web/Gruntfile.js has the configuration to build EVA Web App.

To build EVA web app run the following command in eva-web folder:

grunt or grunt --env=(dev/staging/prod)

Example: for dev instance run the following command:

grunt --env=dev

Default grunt points to production environment.

After successful build the files are then copied to a folder of the form eva-web/build/x.x.x/.

Summary of steps to build EVA Web app

git clone https://github.com/EBIvariation/eva-web.git

cd eva-web

git checkout master

git submodule init

git submodule update

cd lib/jsorolla

npm install

cd ../..

npm install

grunt  

Testing

Currently we build and run tests using Travis CI.

Test design

We use Mocha as test framework and Chai as test assertion library. The tests are run as Grunt tasks. We use a specific version of Firefox to run those tests in Travis CI (look at .travis.yml to see which specific version). There are acceptance tests and unit tests.

When a test fails

As the whole test suite takes some minutes to complete, you can run only some tests adding a property grep: "<substring of test description>" (e.g. grep: "Variant Browser") in gruntfile.js in the mochaTest.acceptanceTest.options object, and run as env BROWSER=firefox grunt --env=staging mochaTest:acceptanceTest.

eva-web's People

Contributors

andresfsilva avatar cyenyxe avatar frasator avatar imedina avatar jmmut avatar kandaj avatar nitin-ebi avatar pabarcgar avatar sundarvenkata-ebi avatar tcezard avatar tskir 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.