GithubHelp home page GithubHelp logo

sathyarajagopal / angular-spring-batch Goto Github PK

View Code? Open in Web Editor NEW

This project forked from nicoraynaud/angular-spring-batch

0.0 1.0 0.0 154 KB

Angular lib to list, query and run Spring Batches

TypeScript 63.87% JavaScript 3.48% HTML 30.52% CSS 2.13%

angular-spring-batch's Introduction

Angular Spring Batch

This lib makes a series of component availables to manage Spring Batch jobs form an Angular Front-End.

You can search, list, start, stop and analyse results of spring batch jobs within an Angular app.

This lib is meant to be used with the backend lib for exposing Spring Batch REST API : spring-batch-rest-api.

Authors

This lib was developed by the following persons (if any co-author wants, I can add his full name and github or personal page link right here) :

  • Jérome
  • Alexis
  • Noémie
  • Kilian
  • Nicolas (me)

Screenshots

admin/jobs page

details

JHipster compatibility

JHipster angular-spring-batch
5.x 1.x.x

Prerequisites

  • You need at least the following libs and versions for this lib to work
    • bootstrap 4.1.0
    • @angular/* ^6.0.0
    • @angular/cli ^6.0.3

Install and integrate

Install

Install with yarn :

yarn add angular-spring-batch

or npm

npm install angular-spring-batch

For Angular 5, the following dependency is also needed :

yarn add rxjs-compat

HOw to use

Add the SpringBatchModule module in your app (for example, in JHipster, import it in the AdminModule module)

import { SpringBatchModule } from 'angular-spring-batch';

@NgModule({
  imports: [
    ...
    SpringBatchModule,
    ...
  ],
})
export class AdminModule {
}

Route

Define the following route : (for JHipster, you can do it in the admin.routes.ts file) :

import { SpringBatchComponent } from 'angular-spring-batch';

const jobsRoute: Route = {
    path: 'jobs',
    component: SpringBatchComponent,
    data: {
        pageTitle: 'jobs.title'
    }
};

const ADMIN_ROUTES = [auditsRoute, configurationRoute, docsRoute, healthRoute, logsRoute, metricsRoute, jobsRoute];

...

Translation (JHipster specific)

If needed, you can add a i18N translations in jobs.json :

{
  "jobs": {
    "title": "Jobs"
  }
}

In a template

You then just need to add a link to /admin/jobs (for example, in JHipster, you can do it in navbar.component.html) :

<li>
    <a class="dropdown-item" routerLink="admin/jobs" routerLinkActive="active" (click)="collapseNavbar()">
        <fa-icon [icon]="['fa', 'clock']" [fixedWidth]="true"></fa-icon>
        <span>Jobs</span>
    </a>
</li>

Build and distribute

Build

$ npm install
$ npm run build

Test locally

The following script starts ng serve as well as a proxy conf that redirects any traffic to /api and /management toward localhost:8080. Voir proxy.conf.json pour modifier.

$ npm run start

Package

$ npm run packagr

Distribute

$ cd dist/angular-spring-batch
$ npm publish

angular-spring-batch's People

Contributors

nicoraynaud avatar

Watchers

James Cloos 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.