Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Empty file added .gitignore
Empty file.
17 changes: 16 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1 +1,16 @@
# library-react-springboot
# library-react-springboot

This is a React Spring Boot Library Application. The project contains two sub-directories
- library-service - Spring Boot Application
- library-ui - React Front End Application

# Run SpringBoot
- cd library-service
- mvn clean install
- mvn spring-boot:run

# Run React
- cd library-ui
- npm install
- npm start
- If the browser is not open automatically, open the url http://localhost:3000/
33 changes: 33 additions & 0 deletions library-service/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
HELP.md
target/
!.mvn/wrapper/maven-wrapper.jar
!**/src/main/**/target/
!**/src/test/**/target/

### STS ###
.apt_generated
.classpath
.factorypath
.project
.settings
.springBeans
.sts4-cache

### IntelliJ IDEA ###
.idea
*.iws
*.iml
*.ipr

### NetBeans ###
/nbproject/private/
/nbbuild/
/dist/
/nbdist/
/.nb-gradle/
build/
!**/src/main/**/build/
!**/src/test/**/build/

### VS Code ###
.vscode/
Binary file added library-service/.mvn/wrapper/maven-wrapper.jar
Binary file not shown.
2 changes: 2 additions & 0 deletions library-service/.mvn/wrapper/maven-wrapper.properties
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
distributionUrl=https://repo.maven.apache.org/maven2/org/apache/maven/apache-maven/3.9.5/apache-maven-3.9.5-bin.zip
wrapperUrl=https://repo.maven.apache.org/maven2/org/apache/maven/wrapper/maven-wrapper/3.2.0/maven-wrapper-3.2.0.jar
23 changes: 23 additions & 0 deletions library-service/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
# Run SpringBoot
- cd library-service
- mvn clean install
- mvn spring-boot:run

# Swagger
- http://localhost:8080/swagger-ui/index.html

# H2 Console
- Open http://localhost:8080/h2-console
- Ensure that the JDBC URL is - jdbc:h2:mem:test
- User name:- sa
- Password :- Leave it empty

# User List

- The user list http://localhost:8080/v1/library/user/list
- Integrated with the End point https://jsonplaceholder.org/users
- Cached for 60 minutes
- 5 Retry attempts

# Sorting
- Backend sort is available in the endpoint - http://localhost:8080/v1/library/book/sortByTitle. However, its not called from React as its done in React itself.
308 changes: 308 additions & 0 deletions library-service/mvnw

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading