Git Product home page Git Product logo

fabric8-planner's Introduction

ALMighty UI

ALMighty UI is a currently an application planner and issue tracker front-end.

It uses ALMighty-core as the back-end.

If this is the first time you are starting the UI you need to run

$ npm install

If you trying to refresh your install you can run:

$ npm run reinstall

Start the app by executing the following.

$ npm start

If you wish to run the app with the in-memory dataset, you need to set an environment variable "ENV" to "inmemory" and do a rebuild. The setting is stored inside the build, changing the value back to unset or "development" (default for npm start) needs a rebuild to take effect.

Run All Checks

To run the linter, build validator, unit tests, and functional test use:

$ npm test

Lint

To run the TypeScript and Angular 2 linter, use:

$ npm run lint
Note
They also run during the unit tests.

Build Validation

To validate the webpack build, use:

$ npm run validate
Note
Validation also runs the unit tests.

Unit Tests

To run the unit test, use:

$ npm run test:unit

To run the unit test in a watch mode so that they are rerun every time you save, use:

$ npm run watch:test

Unit (UI) tests are automatically executed on the PR(pull request) check process (using cico_run_tests.sh) or on the release process (using cico_build_deploy.sh). To executed these scripts from the development environment you can run the following script:

./run_unit_tests.sh

For unit testing, Jasmine, Karma, Webpack is used. There are unit tests available for both services and UI components. There are .spec.ts files available in individual component or service folder. Karma and Webpack config is written inside config directory under root.

Functional Tests

To run the functional test, use:

$ npm run test:func

Functional (UI) tests are automatically executed on the PR check process (using cico_run_tests.sh) or on the release process (using cico_build_deploy.sh) but can also be executed from the development environment by invoking the following command:

./run_functional_tests.sh

External resources are mocked. A Java JRE, ncat and fuser have to be available on the system (see Dockerfile.builder for details on the required packages when building on Fedora/CentOS). PhantomJS will be used as the browser engine by default. This can be changed by adding/modifying browser capabilities in protractor.config.js.

Test specs for functional tests are residing in src/tests.

Production Build

To generate production build, set the API URL and run npm command as give below:

export API_URL="http://api.example.org/api/"
npm run build:prod

The build output will be under dist directory.

To create docker image, run this command immediately after the previous command:

docker build -t almighty-ui-deploy -f Dockerfile.deploy .

fabric8-planner's People

Watchers

 avatar  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.