Giter Club home page Giter Club logo

students-cli-app's Introduction

Building the app

mvn clean package

will compile the app, run the unit tests and produce an uber jar in the target folder.

docker build -t students .

will build a docker image with the jar file from the previous command.

Running from the uber-jar

java -jar target/students-cli-app-0.0.1-SNAPSHOT.jar

will run the app with empty list of students.

java -Dapp.students.generate -jar target/students-cli-app-0.0.1-SNAPSHOT.jar

will run it with some random students in the system.

Running as a docker container

docker run -it students

will run the app with empty list of students.

docker run -it -e GENERATE=true students

will run it with some random students in the system.

Available commands

The app allows adding and removing students in a list. Enter the help command in the app to see the list of available commands with their short description. For example, when running with the pre-generated students in the system, you may type the show command to see what students were generated initially.

Configuration

The app reads its configuration from the src/main/resources/application.yml file. You may override any of the parameters from the command line using the -D flag similar to the examples above.

The following configuration parameters govern the behavior of the app

  • app.students.generate - specifies whether some random students are generated on start-up. It's false by default.

students-cli-app's People

Contributors

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