https://github.com/webmasterdevlin/spring-boot-superheroes
Spring boot 2 with frontend/client app in a single package.
https://github.com/webmasterdevlin/spring-boot-superheroes
githubactions java spring spring-boot spring-boot-2 swagger
Last synced: about 1 year ago
JSON representation
Spring boot 2 with frontend/client app in a single package.
- Host: GitHub
- URL: https://github.com/webmasterdevlin/spring-boot-superheroes
- Owner: webmasterdevlin
- License: mit
- Created: 2021-04-02T15:42:15.000Z (about 5 years ago)
- Default Branch: main
- Last Pushed: 2022-09-11T11:39:39.000Z (almost 4 years ago)
- Last Synced: 2025-01-26T13:30:43.853Z (over 1 year ago)
- Topics: githubactions, java, spring, spring-boot, spring-boot-2, swagger
- Language: TypeScript
- Homepage: https://superheroes-application.herokuapp.com
- Size: 1.16 MB
- Stars: 0
- Watchers: 2
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE.md
Awesome Lists containing this project
README
## Spring Boot API for Heroes application
- Java 17
- Lombok in Villain module
- Prettier Java
- JPA
- Postgres 13
- Open Api 3
- Logging
- slf4j in Hero module
- log4j2 in Villain module
- JWT Auth
- Anti-Heroes is protected
- JUnit Testing with Assertj
- Redis in Villain module
#### Swagger ui
- http://localhost:8080/swagger-ui/index.html?configUrl=/v3/api-docs/swagger-config#/
#### Packaging Locally
- use Java 17
- you can use sdkman for sdk which is a java versions management
```zsh
sdk list java
sdk install java 17.0.3-tem
sdk use java 17.0.3-tem
```
- install maven
- move angular project to the root directory of Spring Boot 2 named frontend or client-app or whatever
- go to root directory of Spring Boot 2 and run the below commands
```zsh
mvn clean
mvn package
```
- go to target directory and run the below commands
```zsh
java -jar target/name-of-your-apps-jar-file-0.0.1.jar
```
or just run your IntelliJ IDEA
- check localhost:8080
#### More info
- https://frakton.com/utilizing-maven-front-end-plugin-for-angular-spring-boot/
- https://www.kantega.no/blogg/webapp-with-create-react-app-and-spring-boot
- https://github.com/eirslett/frontend-maven-plugin