Giter Site home page Giter Site logo

hotelapp's Introduction

HotelApp

#Information Source code of the Java example available at http://www.javaworld.com/article/2072203/build-ci-sdlc/an-introduction-to-maven-2.html .

HotelWebApp model

This example uses Maven as build tool.

To run the example, go into the HotelWebApp module and type :

$ mvn jetty:run

The web application will be deployed on http://localhost:8080

Create your own repository

In order to simulate developments made by a team, you will fork an existing repository on GitHub (demarey/HotelApp) .

On your computer, you will get a working copy from the forked repository to be able to work on the Hotels code.

$ git clone https://github.com/demarey/HotelApp.git hotels

#Set up the Continuous Integration infrastructure

#Some development ##Add a new Hotel In the HotelModel class, add a new Hotel named « Hotel Cigogne », located at « Grand Place », with an empty town and two stars.

new Hotel("Hotel Cigogne","Grand place","",2)

You are in a hurry and you do not want to loose time: you commit without test it before! Bad idea, but let us see...

$ git commit –m « adding a new hotel » 
$ git push

Now check if a build is triggered on the CI server. What is the result? ##Fix a problem As you can see, there is a problem in a test.

Exercise: Find the test in error from the Jenkins server.

hotelapp's People

Contributors

demarey avatar lucasdelvallet avatar

Watchers

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