Skip to content

MoOmEeN/yourendolife

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

89 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

yourENDOlife Logo

yourendolife

This the research project wich goal was to try Vaadin. The idea was to create a web application with minimal possible use of regular front end technologies. In the end, the app does not contain a single line of HTML, does contain two javascript files (because I used one third party library - not required at all, but use of raw JavaScript code in Vaadin app is really easy) and one SCSS file.

The application itself connects to Endomondo services using Endo2Java to retrieve workouts information and does some processing using the data. Unless the domain has expired, application is available here: yourendolife.com.

The application uses Spring Boot. It integrates with Vaadin using Vaadin4Spring (at the time I was starting this project, there was no official Vaadin integration with Spring, now there is one).

Bunch of Vaadin add-ons have been used:

App is doing reverse geolocation using MapQuest Nominatim API. To improve its performance, results are being cached in Mongo using geospatial indexes.

Some configuration tips

mongo env variable

export MONGO_URL="mongodb://localhost:27017/yourendolife"

setting up 2dsphere index

radek@radek:~/repos/yourendolife$ mongo
MongoDB shell version: 2.6.9
connecting to: test
> use yourendolife
switched to db yourendolife
> db.places.ensureIndex({point:"2dsphere"});
{
        "createdCollectionAutomatically" : false,
        "numIndexesBefore" : 1,
        "numIndexesAfter" : 2,
        "ok" : 1
}