Code Monkey home page Code Monkey logo

message-rest-service's Introduction

message-rest-service

This repository contains a sample app using Spring Boot and Maven. It exposes a REST service on http://localhost:8080/message/{id}. The id path parameter must be one from 5 hardcoded message ids, named id1, id2, id3, id4 and id5. Any other id returns a 404 reply.

Before building it please refer to the Maven installation instructions. It describes how to add the mvn executable to the PATH environment variable, which you need to build the application.

Java 8 is also required, and the JAVA_HOME environment variable must also be set.

All the commands described must be run in the home directory of the folder sources.

Testing

  • Run mvn test
  • If all tests are succesful it should be explicitly indicated in the command line

Building

  • Run mvn clean package. This will run the tests again and create a jar containing the app in the /target directory.

Running

  • Run java jar target/message-app-1.0.jar
  • Command line must indicate that application started
  • Open the web browser and go to any message URL. Example: http://localhost:8080/v1/messages/id3

message-rest-service's People

Contributors

pedro-otero avatar

Watchers

 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.