https://github.com/alokkusingh/home-search-service
Home Search Service
https://github.com/alokkusingh/home-search-service
Last synced: 9 months ago
JSON representation
Home Search Service
- Host: GitHub
- URL: https://github.com/alokkusingh/home-search-service
- Owner: alokkusingh
- License: mit
- Created: 2024-12-13T08:31:00.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2024-12-13T11:04:54.000Z (over 1 year ago)
- Last Synced: 2025-09-03T02:02:39.217Z (10 months ago)
- Language: Java
- Size: 16.6 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Home Search Service
Home Stack Search Service
## Build
### Set JAVA_HOME (in case mvn run through terminal)
```shell
export JAVA_HOME=/Library/Java/JavaVirtualMachines/jdk-25.jdk/Contents/Home
export PATH=$JAVA_HOME/bin:$PATH
```
### Build Application image
### How to run
````
java -jar target/home-search-service-2.0.0.jar
````
#### Build
1. Maven Package
```shell
mvn clean package -DskipTests
```
2. Docker Build, Push & Run
```shell
docker build -t alokkusingh/home-search-service:latest -t alokkusingh/home-search-service:2.0.0 --build-arg JAR_FILE=target/home-search-service-2.0.0.jar .
```
```shell
docker push alokkusingh/home-search-service:latest
```
```shell
docker push alokkusingh/home-search-service:2.0.0
```
```shell
docker run -d -p 8081:8081 --rm --name home-search-service alokkusingh/home-search-service
```
### Test
```shell
curl -X GET http://localhost:8081/home/search/transactions?description=avinash
```