Skip to content

AFTIA/com.aftia.amp.module-template

Repository files navigation

Build Status

com.aftia.amp.module-template

A module template repository including a core and ui module for the development of new OSGI/Karaf apps.

Prerequisites

Configuring Azure DevOps Artifacts Token

  1. Navigate to https://dev.azure.com/aftiasolutions/_usersSettings/tokens
  2. Create a new personnal access token (PAT) with the Build: Read & Execute and Packaging: Read & Write permission.
    1. Note: The use of mvn deploy requires a Full Access PAT
  3. Configure a new local environment variable named AMP_ARTIFACTS_PAT to store the value of your PAT and variable named AMP_ARTIFACTS_PAT_BASE64 to store the base64 value of your PAT for NPM

Modules

The main parts of the template are:

  • core: Java bundle containing all core functionality like OSGi services, listeners or schedulers, as well as component-related Java code such as servlets or request filters. This is where the server side business logic is stored. It can be used to expose HTTP(s) based requests to process data and perform operations in order to achieve any business request.
  • ui: Java bundle containing all user interface and browser assets i.e. HTML, JS, CSS. This is where the fontend module binary is placed during a build (target/webapp) and then wrapped into an OSGi bundle in order to be deployed into the runtime.
  • frontend: Maven + Node JS project used to develop, build, and assemble ui assets. This is where the front end business logic is stored. It leverages CSS (Tailwind) and Vue.js (SPA framework) to define beautiful web experiences which aim to satisfy business requirements.

How to build

To build all the modules run in the project root directory the following command with Maven 3:

mvn clean install

To build individual modules run in the project module directory the following command with Maven 3:

mvn clean install

To install all dependencies for frontend development, run in the module-template.frontend directory the following command with Node + NPM:

npm install

To run a live reload development environment during frontend development, run in the module-template.frontend directory the following command with Node + NPM:

npm run serve

To rebuild and purge Tailwind CSS files, run in the module-template.frontend directory the following command with Node + NPM:

npm run build:tailwind

About

A core module with controllers and UI

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors