5 Minute Tutorial
This tutorial describes how to get into development with Ilves in 5 minutes and publish the result to Heroku.
The tutorial is based on embedded Jetty. For traditional WAR approach see: WAR Project Guide
Clone the seed project either first via github to your own account or directly to your workstation with the following command:
git clone https://github.com/bubblecloud/ilves-seed.git
You can alternatively use WAR seed project in which case follow the guide in project README file to build and execute the project:
https://github.com/bubblecloud/ilves-war-seed
- Install PostgreSQL database software if you prefer it instead of HSQL.
- Create database with your chosen owner user name and password.
Edit configuration file in the project root and choose configuration for your preferred database:
site-ext.properties
Build the project:
mvn clean install
Run the project in Windows:
ilves
Run the project on Linux and Mac:
chmod u+x ilves
./ilves
View the project in Browser:
- URL: http://127.0.0.1:8080/
- Login:
admin@admin.org
- Password:
password
Import the project to the IDE as maven project by choosing the maven build file in the root folder:
pom.xml
Run the main class from the IDE:
src/main/java/org/bubblecloud/ilves/Ilves.java
View the project in Browser:
- https://127.0.0.1:8443/
- Login:
admin@admin.org
- Password:
password
- Modify the HelloComponent class to contain your custom Vaadin functionality:
src/main/java/org/bubblecloud/ilves/HelloComponent.java
- Modify localization file to add your own localization key value pairs for english:
src/main/resources/custom-localization.properties
- Modify Sass style sheet to change the look and feel of your site:
src/main/resources/VAADIN/themes/ilves/styles.sass
- Add more pages and modify navigation in the Ilves main class:
src/main/java/org/bubblecloud/ilves/IlvesMain.java
-
Register to Heroku.com.
-
Install Heroku toolbelt from Heroku.com.
-
Login to Heroku from git bash:
heroku login
- Create heroku app by executing in your project root:
heroku create
- After committing and pushing your changes to your master repository you are ready to publish to Heroku:
git push heroku master