GithubHelp home page GithubHelp logo

mohan-balakrishnan / noticeboard Goto Github PK

View Code? Open in Web Editor NEW

This project forked from wkrzywiec/noticeboard

0.0 0.0 0.0 177 KB

Simple RESTful CRUD application (based on Spring Boot)

Java 99.64% Dockerfile 0.36%

noticeboard's Introduction

Noticeboard CRUD application

Master Branch Coverage Quality Gate Status

This is a simple RESTful CRUD (Create Read Update Delete) application for managing Boards, Notices and Authors saved in PostgreSQL database. It provides basic REST endpoints like fetching all objects of given type, finding them by their id, creating them and so on.

data-model

Usage

An application expose 5 REST endpoints for each entity. For example Notice (and any other) they are:

  • GET {baseURL}/notices/ - lists all Notices (as Json array),
  • GET {baseURL}/notices/{id} - gets single Notice (as Json) by its {id},
  • POST {baseURL}/notices/ - creates a new Notice which is passed in the BODY of the request,
  • PUT {baseURL}/notices/{id} - updates an existing Notice (with an {id}) with Notice passed in the body of the request,
  • DELETE {baseURL}/notices/{id}- deletes an existing Notice by its {id}.

If you run this application locally the {baseUrl} would be http://localhost:8080.

All available endpoints are listed on Swagger UI page which can be entered, when application is running, under http://localhost:8080/swagger-ui.html URL.

endpoints

Installation

Run

Before running the application make sure that you are running PostgreSQL database on your local machine.

In order to run it use following command:

mvn clean spring-boot:run

Integration tests

In this project there are located several integration tests for REST endpoints during which H2 database is used. To run those tests activate Mavan -P integration-test profile:

mvn clean verify -P integration-test

License

The MIT License - 2020 - Wojciech Krzywiec

noticeboard's People

Contributors

wkrzywiec 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.