Skip to content

Latest commit

 

History

72 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Hexagonal Architecture's code example

This repository contains an example implementation of some Document Mangement System.

Install and Build

  1. Prerequisite: you need a Java SDK 17 and a Git client.
  2. Clone this repository:
    git clone https://github.com/hex-arch-training/code.git
    cd code
  3. Build the code using the Maven wrapper:
    ./mvnw clean package

Run and enjoy :)

  1. You can run the Document Mangement System's REST API as a Spring Boot web application:

    java -jar configuration/web-api/target/web-api-0.0.1-SNAPSHOT.jar
  2. Add a simple revision:

    curl -X POST http://localhost:8080/revision -H 'Content-Type: application/json' -d '{"documentTitle": "Title", "revisionContent": "some content"}'

    The above POST request returns the ID of the revision just created, e.g: 1

  3. Query the revision just created using this ID:

    curl http://localhost:8080/revision/1

About

No description, website, or topics provided.

Resources

Stars

1 star

Watchers

3 watching

Forks

Releases

Packages

Used by

Contributors

Languages