You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
KKlochko 66b713fae5
Update the README.
1 year ago
.github Update actions/cache action to v3 2 years ago
.mvn/wrapper Update dependency maven to v3.9.4 2 years ago
config Add the example of a db configuration. 2 years ago
src Update the AuthorizedInterceptor to return a JSON error instead of HTML. 1 year ago
.drone.yaml Update the CI/CD config to upload the war file. 1 year ago
.gitattributes Update Gradle 7.5.1 and Maven 3.8.6 3 years ago
.gitignore Update the .gitignore. 2 years ago
Dockerfile Add the Dockerfile and Makefile to run the server. 1 year ago
LICENSE initial commit 13 years ago
Makefile Add the Dockerfile and Makefile to run the server. 1 year ago
NOTICE initial commit 13 years ago
README.md Update the README. 1 year ago
docker-compose.yml Update the docker-compose to run also run the tomcat. 1 year ago
mvnw Update dependency maven-wrapper to v3.2.0 2 years ago
mvnw.cmd Update dependency maven-wrapper to v3.2.0 2 years ago
pom.xml Update the maven configuration. 1 year ago

README.md

spring-rest-example

This project is a example of using Spring REST.

The project uses the Spock Framework Example Project

Prerequisites

  • JDK 17 or higher

  • Maven use mvnw wrapper

Building with Maven

Downloaded files will be stored in the local Maven repository (typically user_home/.m2/repository).

Type: test

./mvnw clean test

Type: build

./mvnw clean install -DskipTests=true
# or
make war

Type: preparation

  • create a folder, for example, project.
  • copy SpringRestExample.war from a release to target/ in the folder.
    • if you build the application from source, skip this step.
  • copy Dockerfile and docker-compose.yml to the folder.
  • turn up the project in the project:
    docker-compose up -d --build
    
  • wait a minute while the database is bootstrapping.
  • now you can connect to the application.

Author

Kostiantyn Klochko (c) 2023