Skip to content

Sample CRUD project based on Quarkus, RestEasy, Arc, Hibernate, Mysql

Notifications You must be signed in to change notification settings

popovski/quarkus-crud-library

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Spring Boot CRUD application used for training IWConnect Junior Developers

Sample CRUD project based on Quarkus, RestEasy, Hibernate, Mysql

Getting Started

These instructions will get you a copy of the project up and running on your local machine for development and testing purposes.

Prerequisites

  • Java JDK 8

Installing

  • Get the project from GIT "git clone https://github.com/popovski/quarkus-crud-library"
  • Create new Database in Mysql "iw_library"
  • Execute the sql scripted placed in "/iw-labs-crud-library-quarkus/src/main/resources/sql/ddl.sql"
  • Set datasource url of your MYSQL DB application.properties -> spring.datasource.url
  • Set mysql user value into application.properties -> spring.datasource.username
  • Set mysql user password value into application.properties -> spring.datasource.password

Build and Start the project

  • go to root directory of the project
  • run the project in Development mode
  • ./mvnw compile quarkus:dev
  • Build and Run for Production
  • ./mvnw package
  • java -jar target/quarkus-app/quarkus-run.jar

Running the tests

.\mvnw test - command for running the junit tests

Built With

Demo

After you start the application the server will listen on port 8060

  • Get all books
    HTTP GET localhost:8060/books/

  • Create new book
    HTTP POST localhost:8060/books/
    Payload Json Body
    { "title": "NEW TITLE", "description": "NEW DESCRIPTION" }

  • Update existing book
    HTTP PUT localhost:8060/books/ - comment replace UUID with existing book UUID
    Payload Json Body
    { "title": "UPDATE TITLE", "description": "UPDATE DESCRIPTION" }

  • Delete Resource
    localhost:8060/api/books/ - comment replace UUID with existing book UUID

Authors

See also the list of contributors who participated in this project.

License

This project is licensed under the MIT License - see the LICENSE.md file for details

About

Sample CRUD project based on Quarkus, RestEasy, Arc, Hibernate, Mysql

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published