Compare commits
4 Commits
3ca21fdca9
...
6b1ffa49c8
Author | SHA1 | Date |
---|---|---|
Greg Gauthier | 6b1ffa49c8 | |
Greg Gauthier | 40fc9c3e0e | |
Greg Gauthier | cc5cdbedd3 | |
Greg Gauthier | 98a71cf3c3 |
|
@ -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
|
|
@ -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/
|
||||
|
|
42
README.md
42
README.md
|
@ -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)
|
||||
|
||||
|
|
Binary file not shown.
After Width: | Height: | Size: 176 KiB |
Binary file not shown.
After Width: | Height: | Size: 66 KiB |
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue