Tutorial on Strolchhttps://strolch.li/tutorial/Recent content in Tutorial on StrolchHugo -- gohugo.ioen-usConfigurationhttps://strolch.li/tutorial/configuration/Mon, 01 Jan 0001 00:00:00 +0000https://strolch.li/tutorial/configuration/Configuration Let’s start by creating a new Apache Maven project. We’ll need a POM with the proper dependencies. We expect you to be familiar with Apache Maven, so we’ll just show you a working POM file: pom.xml <?xml version="1.0"?> <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> <modelVersion>4.0.0</modelVersion> <groupId>li.strolch</groupId> <artifactId>strolch-bookshop</artifactId> <version>0.1.0-SNAPSHOT</version> <packaging>war</packaging> <name>strolch-bookshop</name> <description>Bookshop built on Strolch</description> <inceptionYear>2017</inceptionYear> <properties> <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding> <maven.build.timestamp.format>yyyy-MM-dd HH:mm:ss</maven.build.timestamp.format> <buildTimestamp>${maven.build.timestamp}</buildTimestamp> <jdk.version>1.8</jdk.version> <jersey.version>2.25.1</jersey.version> <slf4j.version>1.7.25</slf4j.version> <logback.version>1.2.3</logback.version> <petitparser.version>2.1.0</petitparser.version> <hikaricp.version>4.0.3</hikaricp.version> <postgresql.version>42.1.4</postgresql.version> <gson.version>2.8.2</gson.version> <annotation.version>1.3.1</annotation.version> <javaxmail.version>1.6.0</javaxmail.version> <serverlet.Modelhttps://strolch.li/tutorial/model/Mon, 01 Jan 0001 00:00:00 +0000https://strolch.li/tutorial/model/Model Looking back at our functionality, we can list the following entities that need to be modelled (We’ll go into detail further down): Book → books can be orderd UserCart → we want to store the cart of the user Account → we need to know where to send the orders PurchaseOrder → we need to know what was ordered and keep track of its state FromStock → we want to use activities to implement the process of an order In Strolch we model entities by defining the element as a template.CRUD Bookhttps://strolch.li/tutorial/crud-book/Mon, 01 Jan 0001 00:00:00 +0000https://strolch.li/tutorial/crud-book/Preparation Since Books are central to the bookshop, we’ll first create the CRUD REST API for them. The API will be as follows: GET ../rest/books?query=,offset=,limit= GET ../rest/books/{id} POST ../rest/books PUT ../rest/books/{id} DELETE ../rest/books/{id} Thus corresponding with querying, getting, creating, updating and removing of books. So let’s go ahead and add these REST APIs to our project. Our project is using JAX-RS 2.0 as the API and Jersey 2.x as the implementation, thus first we need to configure JAX-RS.