Coder Social home page Coder Social logo

barkinet / openmrs-module-coreapps Goto Github PK

View Code? Open in Web Editor NEW

This project forked from openmrs/openmrs-module-coreapps

0.0 2.0 0.0 4.36 MB

Provides apps for performing the common tasks

Java 31.72% JavaScript 49.82% Ruby 0.07% CSS 1.11% HTML 1.56% Groovy 15.71%

openmrs-module-coreapps's Introduction

Build Status Codacy Badge dependencies Status devDependencies Status

OpenMRS Core Apps Module

Provides apps for performing the common tasks

Dashboard widgets development

The widgets are built as part of the module (mvn clean install) without having to install Node or NPM manually. Nevertheless, if you want to develop widgets installing Node is recommended so that you can iterate faster by building widgets and executing tests continously.

You need to have Node 6.x installed. We recommend using nvm or nvm-windows to install Node.

The code is at omod/src/main/web

The generated code is at omod/target/classes/web/module/resources/scripts/web

Installing dependencies: npm install --no-optional (once after code checkout or when dependencies change)

Development build: npm run build:dev

Continuous development build: npm run watch (whenever you make a change, a new UI build will be triggered)

Continuous test execution: npm run test:dev (in PhantomJS), npm run test:dev-chrome (in Chrome), npm run test:dev-firefox (in Firefox) (whenever you make a change, tests will be run again)

Clean development build: npm run clean && npm run build:dev

Production build: npm run build

For continous development we recommend setting up a server using OpenMRS SDK and adding the coreapps module to watched projects (supported in UI Framework 3.12.0+). Next start the server and use the npm run watch command to have js code instantly transpiled and deployed to the server. Do remember to disable caching for your browser or use Ctrl + F5 to refresh page and its cache to see changes.

Linking

Linking is a feature of npm, which allows you to modify a library and test modifications in your project.

  1. Clone https://github.com/openmrs/openmrs-web-angularjs-api
  2. Run npm link and npm run build from the lib directory
  3. Run npm link @openmrs/angularjs-openmrs-api from the coreapps project directory.
  4. Build the coreapps project.

In order to unlink do:

  1. Run npm unlink @openmrs/angularjs-openmrs-api and npm install from the coreapps project directory.
  2. Build the coreapps project.

openmrs-module-coreapps's People

Contributors

adamgrzybkowski avatar albogabriel avatar andrewmoko avatar bholagabbar avatar cioan avatar craigappl avatar cvortmann avatar djazayeri avatar dkayiwa avatar gayanw avatar glauberramos avatar hpardess avatar isears avatar jkondrat avatar leebreisacher avatar mario-areias avatar mks-d avatar mogoodrich avatar mseaton avatar openmrs-bot avatar osagie4cousant avatar rbuisson avatar rkorytkowski avatar slubwama avatar ssmusoke avatar themoonraker13 avatar tmarzeion avatar tomaszmueller avatar wluyima avatar

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.