Skip to content
/ eva-web Public
forked from EBIvariation/eva-web

Web front-end for the European Variation Archive

Notifications You must be signed in to change notification settings

tskir/eva-web

 
 

Repository files navigation

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.

About

Web front-end for the European Variation Archive

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages

  • JavaScript 79.4%
  • HTML 18.5%
  • CSS 2.1%