Sample CRUD project based on Quarkus, RestEasy, Hibernate, Mysql
These instructions will get you a copy of the project up and running on your local machine for development and testing purposes.
- Java JDK 8
- 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
- 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
.\mvnw test - command for running the junit tests
- Spring Boot
- Maven - Dependency Management
- MySql
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
- Nikola Popovski - Initial work - Repository
See also the list of contributors who participated in this project.
This project is licensed under the MIT License - see the LICENSE.md file for details