README.md 1.29 KB
Newer Older
1 2 3 4 5
# Bonita portal js

Part of bonita portal written using AngularJs

## Requirements
Colin PUY's avatar
Colin PUY committed
6 7 8
- node.js > v6.9.4 
- yarn > v0.27.5
- maven > 3.3.9
9 10

## Development tasks
Colin PUY's avatar
Colin PUY committed
11
Please run `yarn install` Before launching any of following tasks
12 13

### Launch project in development mode
14
Before running project in development mode, you need to launch a Bonita backend available on URL http://localhost:8080/
15 16
Then launch:

Colin PUY's avatar
Colin PUY committed
17
    yarn start
18 19 20 21
    
Project should be running at URL http://localhost:9000/bonita/portaljs/
    
### Launch unit tests
Colin PUY's avatar
Colin PUY committed
22
    yarn run test
23 24

### Launch unit tests in watch mode
Colin PUY's avatar
Colin PUY committed
25
    yarn run test:watch
26 27
    
### Launch end to end tests
Colin PUY's avatar
Colin PUY committed
28
    yarn run e2e
29 30 31 32
    
You can run specific e2e class test with this command line.

    yarn run e2eOnly --specs=path_to_file.e2e.js
33

34 35 36
### Launch end to end tests in headless mode
    yarn run e2e:headless

37 38 39
### Launch end to end tests in headless mode
    yarn run e2e:headless

40
### Build project
Colin PUY's avatar
Colin PUY committed
41
    yarn run build
42 43 44 45

### Localization
Localization keys can be extracted from source files to an .pot output file (./target/portal-js.pot). To do so, run the following command

Colin PUY's avatar
Colin PUY committed
46
    yarn run pot
47 48
    
## Maven build
49

50 51
Project can also be built using maven

52
    ./mvnw clean package [-Pe2e]
53 54

This will build the project, package it in a zip file and, run end to end test if _e2e_ profile is activated