Logo Lanfrica

motech-implementations/mots

Domaine:

healthcare
Créateur:
mot
Hôte:
As in many African countries, the Community Health Worker (CHW) is the backbone of the healthcare system, and the focus and objective of the Mobile Training and Support (MOTS) project will be strengthening this network to ensure preparedness for Ebola vaccine campaigns and outbreak response. The project will set up a MOTS service that is the vehicle for delivery of this training. This service will provide mobile training to CHWs via their mobile phones with feature phone as the basic requirement. The MOTS service will provide training modules that include units and quizzes, and allow monitoring by management. ## Documentation You can find javadoc documentation here: motech-implementations.gith…. ## Quick Start backend development Clone this repository from GitHub: ```shell git clone github.com ``` 1. Start the service with `./gradlew bootRun` or `gradle bootRun`. On first run it installs all dependencies like NPM, node modules etc. Once it is running, you should see 'Started Application in NN seconds'. Your console will not return to a prompt as long as the service is running. The service may write errors and other output to your console. 2. Best way for speed development is to add a `bootRun` Gradle configuration to IntelliJ Idea, and run it with `Debug` option. 3. Hot-swapping Java classes without rerunning `./gradlew bootRun`: try clicking CTRL+F9 to build project (ie. all Java classes in classpath), and accept a prompt asking about reloading changed classes. ## Frontend Hot-Reload with Webpack watch 1. Start Java server with `./gradlew bootRun` or `gradle bootRun` (if you want run local environment gradle). 2. Run `./gradlew webpackWatch` or `gradle webpackWatch` in separate terminal (or ideally in IntelliJ Idea) 3. Profit - your .scss, and .js files are reloaded automatically. Refresh your browser. ## IntelliJ Idea development 1. Install Lombok, MapStruct nad NodeJS plugins under File -> Settings -> Plugins -> Browse repositories... search for the Lombok, MapStruct support and NodeJS plugins and install them all. 2. Check the Enable annotation processing checkbox under File -> Settings -> Build, Execution, Deployment -> Compiler -> Annotation Processors. 3. Download the `intellij-java-google-style.xml` file from the code.google.com repo. Under File -> Settings -> Editor -> Code Style import the google-styleguide (gear icon -> Import Scheme -> Intellij IDEA code style XML) and choose it as current code style for the project. 4. Enable ESLint under File -> Settings -> Langu …