https://github.com/pmlopes/vertx-demos
https://github.com/pmlopes/vertx-demos
Last synced: 4 days ago
JSON representation
- Host: GitHub
- URL: https://github.com/pmlopes/vertx-demos
- Owner: pmlopes
- Created: 2015-10-29T15:23:10.000Z (over 10 years ago)
- Default Branch: master
- Last Pushed: 2015-11-04T08:08:52.000Z (over 10 years ago)
- Last Synced: 2025-02-25T17:36:59.595Z (over 1 year ago)
- Language: Java
- Size: 28 MB
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: Readme.md
Awesome Lists containing this project
README
# map-render/server
This demo is made of 3 parts
* map-render - renders png tiles of maps
* map-server - serves the maps using a simple HTTP server
* frontend - a js + npm vert.x frontend
## Build
```
mvn clean install
```
## Run
### Run map-render
```
java -jar map-render/target/map-render-1.0.0-SNAPSHOT-fat.jar --cluster
```
repeat the above as many times as you like...
### Run map-server
```
java -jar map-server/target/map-server-1.0.0-SNAPSHOT-fat.jar --cluster
```
### Run the web frontend
For the frontend we need a running redis server in order to store the
recommendation, for this we can quickly launch an ephemeral redis server
using docker:
```
sudo docker run -p 6379:6379 redis
```
And the just use npm
```
cd frontend
npm start
```
Then open a browser to [http://localhost:8080](http://localhost:8080).