922: Create Requisition-UI Repository and Build Process

Test Case #: 922

Test Case Name: Create Requisition-UI Repository and Build Process

System: OpenLMIS

Subsystem: Requisition-refUI

Test case designed by: Anna Czyrko

Design Date: 01.09.2016

Short description

  • Create new Requisition-UI github repo (using naming convention from arch doc)
  • Reuse existing v2 Requisition front-end assets
  • Create build process
    • OpenLMIS Build Process i18n **
      Allowing the the UI and UI components to provide their own language translations with out relying on getting translation strings from a OpenLMIS service.
  • UI Build should repurpose the existing process for Transifex integration that the Service Template uses but should prefer the translations in JSON format (vs the messages_<lang>.properties file the Services use)
  • Parse included language files, and load into javascript file as JSON Vairable
  • Update i18n service to load from this variable
  • Load javascript file in main html page
    • TESTING **
  • Migrate Karma/Jasmine Unit Testing
  • Server URL Endpoint should be a Global Variable

                                                                                                                                                   

Pre – conditions:

  1.     Clone requisition-refUI from github repository: https://github.com/OpenLMIS/openlmis-requisition-refUI          
  2.     In Terminal enter: sudo docker-compose run --service-ports requisition-refui, and enter grunt built and next enter grunt serve.



Step

Action

Expected system response

Comment

1.

Create account in https://www.transifex.com/


Remember password and login. You should create acccount only one.

2.

In Terminal enter ./sync_transifex.sh.



3.

In Terminal enter your username and password.

Should download translations.
4.Enter in Terminal grunt build and grunt serve.

5.In web browser enter http://localhost:9000/public/pages/login.html and check if you are able to change language of the website.



Post – conditions:

                                                                                                                   

OpenLMIS: the global initiative for powerful LMIS software