/mvc-spring-boot

mvc-spring-boot

Primary LanguageJava

mvc-spring-boot

Build Status License: MIT Quality Gate Coverage Status

Requirements

  1. Java - 1.8.x

  2. Maven - 3.x.x

  3. MongoDB - 3.x.x

Run MONGO using Docker for Windows

  • docker volume create --name=mongodata
  • docker run -d -p 27017:27017 -v mongodata:/data/db mongo
mvn spring-boot:run

The server will start at http://localhost:8080.

Code coverage report

mvn jacoco:report

Exploring the Rest API

The application defines following REST APIs

1. GET /tweets - Get All Tweets

2. POST /tweets - Create a new Tweet

3. GET /tweets/{id} - Retrieve a Tweet by Id

4. PUT /tweets/{id} - Update a Tweet

5. DELETE /tweets/{id} - Delete a Tweet

6. GET /stream/tweets - Stream tweets to the browser