Git Product home page Git Product logo

spring-batch-admin-2.0.0-angularjs-maven's Introduction

Spring Batch Admin - AngularJS

AngularJS is a popular javascript MVC framework developed by Google. This sample application demonstrates a sample UI developed using AngularJS consuming Spring Batch Admin's REST endpoints.

Dependencies

This project requires the following to be built:

  • Java 7 or higher

Configuration

This sample app contains two configuration files, all residing in src/main/resources:

application.properties
This is the standard Spring Boot configuration file used to specify environment specific values.

batch-*.properties
This file is used to configure your database. The * is replaced with whatever the database type you're using. This should match the value of the ENVIRONMENT property in the application.properties file. This project comes with an HSQLDB preconfigured.

Build and launch application

To start up this application, is a two step process:

Build the client

  1. Enable Maven Profile buildUI
  2. Perform a Maven Compile (Will take sometimes for first compile)

The result of this will place all the compiled client static resources into src/main/resources/public.

Build and launch the Spring Boot jar
Once the client has been built, you can compile and start up the application using spring-boot:run plugin goal.

Sample jobs

There are two sample jobs provided in this example. One is XML based and can be found in src/main/resources/META-INF/spring/batch/jobs. The other is a Java config based job. The Java configured job (job), takes an optional parameter fail to indicate if it should fail or not.

Development Profile

The front end for this project was generated using Yeoman and uses the Grunt build system. The development profile provides the ability to iterate on the front end independently of the back end. To do so:

  • Run the Spring Boot based app using your method of choice (java -jar, IDE, etc) with the spring.profiles.active=development configured in the application.properties.
  • From the client directory, run $ grunt serve. This will launch a separate server on port 9000 that will serve the static resources. It includes functionality like automatic reloading of the page in the browser as changes are made, etc.

The development profile makes this dual server configuration possible via the CORSFilter. It is disabled by default and should not be run in a production environment.

Screenshots: d877e5cd20a0fe8e26641a882800d82b.png

6c385cff74835c5295b29e60b009d6be.png

db2f0b7c683c1fa025736a8c40f3419b.png

spring-batch-admin-2.0.0-angularjs-maven's People

Contributors

mminella avatar

Stargazers

 avatar

Watchers

 avatar  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.