https://github.com/akullpp/rest-soap-combined
Simple bottom-up SOAP service which also provides a REST API and a clean architecture for proxying Google's geolocation API
https://github.com/akullpp/rest-soap-combined
Last synced: about 1 year ago
JSON representation
Simple bottom-up SOAP service which also provides a REST API and a clean architecture for proxying Google's geolocation API
- Host: GitHub
- URL: https://github.com/akullpp/rest-soap-combined
- Owner: akullpp
- License: mit
- Created: 2019-08-06T08:33:40.000Z (almost 7 years ago)
- Default Branch: master
- Last Pushed: 2022-09-08T01:02:02.000Z (almost 4 years ago)
- Last Synced: 2024-05-02T05:13:17.455Z (about 2 years ago)
- Language: Java
- Size: 65.4 KB
- Stars: 6
- Watchers: 4
- Forks: 2
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Geoloc
This is a example project which functions as a gateway to Google's Geolocation API to show how SOAP and REST can co-exist side-by-side.
## Usage
### Environment variables
The following environment variables are expected:
```sh
GEOLOC_POSTGRES_USER=${POSTGRES_USER}
GEOLOC_POSTGRES_PASSWORD=${POSTGRES_PASSWORD}
GOOGLE_GEOLOCATION_API=${GOOGLE_GEOLOCATION_API_URL}
GOOGLE_GEOLOCATION_KEY=${GOOGLE_GEOLOCATION_API_KEY}
```
Additionally you can run the `dev` profile with:
```sh
GEOLOC_ACTIVE_PROFILES=default,dev
```
which sets the default API url to `https://maps.googleapis.com/maps/api/geocode` and expects a PostgreSQL at `localhost:5432` with the credentials of `postgres/postgres`.
### Maven
```sh
mvn clean install
java -jar target/geoloc-*.jar
```
### Docker
```sh
docker-compose up -d
```