Compare commits

...

4 Commits

Author SHA1 Message Date
Greg Gauthier 6b1ffa49c8 add gitea workflow
CMake / build (push) Successful in 1m37s Details
2024-02-23 23:12:57 +00:00
Greg Gauthier 40fc9c3e0e add gitea workflow 2024-02-23 23:10:49 +00:00
Greg Gauthier cc5cdbedd3 update gitignore 2024-02-23 23:01:45 +00:00
Greg Gauthier 98a71cf3c3 add proper readme doc for project 2024-02-23 22:58:37 +00:00
6 changed files with 73 additions and 41 deletions

View File

@ -0,0 +1,30 @@
name: CMake
on: [push]
env:
BUILD_TYPE: Release
jobs:
build:
runs-on: node16-bullseye
steps:
- name: Prep For Local Builds
run: echo "${LOCIP} gitea.comnenos" >> /etc/hosts
- uses: actions/checkout@v2
- name: Install Build Tools
run: apt-get update && apt-get -y --no-install-recommends install build-essential openjdk-17-jdk maven maven-ant-helper && echo "********* INSTALLS COMPLETED *********"
- name: Maven Build
shell: bash
working-directory: ${{runner.workspace}}
run: mvn compiler:compile
- name: Maven Test
working-directory: ${{runner.workspace}}
shell: bash
# Execute the build. You can specify a specific target with "--target <NAME>"
run: mvn test

40
.gitignore vendored
View File

@ -1,41 +1,3 @@
#https://github.com/spring-projects/spring-boot/blob/master/.gitignore
.idea/
*#
*.iml
*.ipr
*.iws
*.jar
*.sw?
*~
.#*
.*.md.html
.DS_Store
.classpath
.factorypath
.gradle
.idea
.metadata
.project
.recommenders
.settings
.springBeans
/build
/code
MANIFEST.MF
_site/
activemq-data
bin
build
build.log
dependency-reduced-pom.xml
dump.rdb
interpolated*.xml
lib/
manifest.yml
overridedb.*
target
transaction-logs
.flattened-pom.xml
secrets.yml
.gradletasknamecache
.sts4-cache
target/

View File

@ -1,2 +1,42 @@
# calculator-project2
sample springboot service
## Intro
A sample springboot application, including both a service, and an api client.
## Compile
```
mvn compiler:compile
```
## Test
This will run the basic test set for both the service, and for the API client
```
mvn test
```
## Run The Service
```
mvn spring-boot:run
```
## Usage
Once the service is running, you can use the included CalculatorApp to demo the service and
the API client, or you can use something like Insomnia to execute manual queries of the endpoints.
Command line execution:
```
java -classpath
\ {/path/to/your/target/classes:/path/to/your/.m2/repository/dependencies}
\ com.gmgauthier.CalculatorApp
```
It might be easier to execute it using an IDE like Eclipse or Intellij
![](doc/calcapp.png)
![](doc/insomnia-view.png)

BIN
doc/calcapp.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 176 KiB

BIN
doc/insomnia-view.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 66 KiB

View File

@ -10,4 +10,4 @@ spring.h2.console.path=/h2-console
spring.main.banner-mode=off
logging.level.org.springframework=OFF
logging.level.root=OFF
logging.level.root=info