Giter VIP home page Giter VIP logo

quarkus-greetings's Introduction

Quarkus Greetings application

A simple Java web applicaton developed using Quarkus framework to display a random quote of the day

Getting started

Below steps will mention the prerequisites and the steps to be performed to get started

If you dont want the trouble of installing software, compiling the packages
and running the application then just download the docker hub using

docker pull rakgenius/quarkus-greetings

and run the image image using

docker run -i -d --rm -p 8080:8080 rakgenius/quarkus-greetings

Then navigate to

http://localhost:8080/greetings

Prerequisites

Below are the softwares that needs to be installed as a dependency

GraalVM
Maven
Docker (to build Docker image)

GraalVm can be installed and configured by following the steps
mentioned here

Once the prerequisite softwares are installed you can continue further

Running the application

1 . Git clone the repo to any machine

2 . Build the packages using the command

./mvnw package -DskipTests

3 . To build the native packages, run

./mvnw package -DskipTests -Pnative

4 . Run the application using

java -jar target/greetings-1.0-runner.jar

5 . Run the native application using

./target/greetings-1.0-runner

6 . Navigate to

http://localhost:8080/greetings

Building the docker images

Below are the command to build the docker image and to publish it to docker hub

1 . After creatin the native package, run the below command

./mvnw package -DskipTests -Pnative -Dnative-image.docker-build=true

2 . Create the docker image using

docker build -f src/main/docker/Dockerfile.native -t quarkus/greetings .

3 . Run the docker image using

docker run -i -d --rm -p 8080:8080 quarkus/greetings

4 . Create your own image which has to be pushed to the docker hub

docker image ls

Get the "IMAGE ID" of "quarkus/greetings" image

Set the tag to your image

docker tag <IMAGE TAG OBTAINED ABOVE> <your dockerhub username>/quarkus-greetings:latest

5 . Now push the docker image to docker hub

docker push <your docker hub username>/quarkus-greetings

6 . Now you can pull the image on any machine anywhere using

docker pull <your dockerhub username>/quarkus-greetings

And run it using the command mentioned in step 3.

Built With

  • Maven - Dependency Management

Authors

Rakesh Venkatesh

quarkus-greetings's People

Contributors

ravening avatar

Watchers

 avatar  avatar  avatar

Forkers

arnzel

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.