Coder Social home page Coder Social logo

connexta-karaf-tutorial's Introduction

Getting started with Karaf

This is a tutorial is for developers new to Apache Karaf. Fundamental Karaf concepts will be introduced, as well as best practices set by Connexta's developers. If you would like to know something not covered in this tutorial, you can refer to the Apache Karaf Documentation for more information.

"Hello name!"

This tutorial creates a simple REST service that can be called with a URL and a single parameter (your name):

http://localhost:8181/cxf/greeting/hello/{name}

The service will return a greeting with your name. For example, http://localhost:8181/cxf/greeting/hello/joseph will return "Hello, joseph!" in your browser

Setup

First, clone this repository: git clone https://github.com/AzGoalie/connexta-karaf-tutorial/

Then, cd into connexta-karaf-tutorial and run mvn install.

This will build the project and place a zip folder here: connexta-karaf-tutorial/distribution/target

Change your directory to target and unzip the folder with unzip distribution-1.0-SNAPSHOT.zip

This will create a folder with the same name as the zip folder, and it will hold a folder marked bin.

Within bin are files to run Karaf.

  • If you are on Mac or Linux, run Karaf with ./distribution-1.0-SNAPSHOT/bin/karaf

  • If you are on Windows, run Karaf with distribution-1.0-SNAPSHOT/bin/karaf.bat

You will then enter the Karaf terminal. Using terminal commands will be covered later, but for now, you can try the "Hello name!" REST service in your browser.

connexta-karaf-tutorial's People

Contributors

azgoalie avatar jhunzik avatar josephthweatt avatar

Stargazers

 avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

Forkers

josephthweatt

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.