First Bucharest GTUG event 02 Mar 2010

24
Bucharest 2 March 2010

description

First Bucharest GTUG event 02 Mar 2010

Transcript of First Bucharest GTUG event 02 Mar 2010

Page 1: First Bucharest GTUG event 02 Mar 2010

Bucharest 2 March 2010

Page 2: First Bucharest GTUG event 02 Mar 2010

So - What's a GTUG? 

• GTUG stand for Google Technology Users Group• GTUGs are user groups for people who are interested in

Google's developer technology; • We'll try cover (eventually - cough) everything from the 

Android, App Engine, GWT and Wave platforms, to product APIs like the YouTube API and the Google Calendar API, to initiatives like OpenSocial. 

Page 3: First Bucharest GTUG event 02 Mar 2010

Subject: Documentation, Downloads, Project hosting and more.

Homepage:http://code.google.com/

Your own place:http://code.google.com/hosting/

Page 4: First Bucharest GTUG event 02 Mar 2010

Incubation stage • gathering members• gathering managers• finding out what people are interested in• ready for first event 2 March 2010

Bucharest GTUG is readyhttp://bucharest.gtug.ro/

Page 5: First Bucharest GTUG event 02 Mar 2010

Welcome to the first Bucharest GTUG event

Bucharest GTUG

Web: http://bucharest.gtug.ro/Twitter: http://twitter.com/gtug_roGroup: http://groups.google.com/group/gtug-ro

Page 6: First Bucharest GTUG event 02 Mar 2010

2 march 2010 - Bucharest GTUG

Agenda

Introduction to Bucharest GTUGIntroduction to Google Web ToolkitIntroduction to Google App EngineQuestions

Page 7: First Bucharest GTUG event 02 Mar 2010

2 march 2010 - Bucharest GTUG

What is Google Web Toolkit (GWT)?

• Open source framework for AJAX applications• Powerful Java to JavaScript compiler• Pure JavaScript / DHTML at the client side• Supports all modern browsers IE, Firefox, Safari and Chrome

SDK Speed Tracer Plugin for Eclipse

Page 8: First Bucharest GTUG event 02 Mar 2010

2 march 2010 - Bucharest GTUG

Why GWT?

• In the end, it's just JavaScript• Don't worry about XMLHttpRequest• Use the backend language of your choice• Optimize the JavaScript script downloads based on user profile• Reuse UI components across projects• Use other JavaScript libraries and native JavaScript code• Easily support the browser's back button and history• Internationalize your application• Be productive with your choice of development tools• Test your code with JUnit• It's free and open source

Page 9: First Bucharest GTUG event 02 Mar 2010

2 march 2010 - Bucharest GTUG

Google Web Toolkit 2.0 New Features (video)

• http://www.youtube.com/watch?v=uExEw3OVMd0

Page 10: First Bucharest GTUG event 02 Mar 2010

2 march 2010 - Bucharest GTUG

Prepare DEMO …

• Eclipse eclipse-jee-galileo-SR2-win32.zip• jdk1.5.0 or jdk1.6.0• Install Google Plugin for Eclipse• GWT SDK (optional) gwt-2.0.3.zip

Page 11: First Bucharest GTUG event 02 Mar 2010

2 march 2010 - Bucharest GTUG

GWT SDK 2.0.3 Examples

• Hello• Showcase• Mail

Page 12: First Bucharest GTUG event 02 Mar 2010

2 march 2010 - Bucharest GTUG

Hello GWT!

Live demo …

Page 13: First Bucharest GTUG event 02 Mar 2010

2 march 2010 - Bucharest GTUG

Speed Tracer

Start Google Chrome with the following flag:--enable-extension-timeline-api

Video:http://www.youtube.com/watch?v=Sn_3rJaexKc

Page 14: First Bucharest GTUG event 02 Mar 2010

2 march 2010 - Bucharest GTUG

GWT Resources

• Home http://code.google.com/webtoolkit/• Blog http://googlewebtoolkit.blogspot.com/• Group http://groups.google.com/group/google-web-toolkit• GWT Contributors http://groups.google.com/group/google-web-toolkit-contributors

Page 15: First Bucharest GTUG event 02 Mar 2010

2 march 2010 - Bucharest GTUG

Google App Engine

Run your web apps on Google's infrastructure.Easy to build, easy to maintain, easy to scale.

http://appgallery.appspot.com/

Application IDhttp://<id>.appspot.com/

And for your domain with Google Appshttp://<id>.mydomain.com/

Page 16: First Bucharest GTUG event 02 Mar 2010

2 march 2010 - Bucharest GTUG

Java

• a complete Java 6 runtime environment in a secure sandbox environment• based on common Java web technology standards, including servlets and WARs, JDO and JPA, java.net, JavaMail and JCache• a plugin for the Eclipse IDE makes project creation, testing and deployment a snap• supports other languages that compile to the JVM or use JVM-based interpreters, such as JRuby, JavaScript (Rhino), and Scala

Page 17: First Bucharest GTUG event 02 Mar 2010

2 march 2010 - Bucharest GTUG

Python

• a fast Python 2.5 interpreter in a secure sandbox environment• includes the complete Python standard library• compiled application code is cached for rapid responses to web requests• supports popular web application frameworks, including Django• works with any application that supports CGI or WSGI• includes a rich data modeling API for the datastore

Page 18: First Bucharest GTUG event 02 Mar 2010

2 march 2010 - Bucharest GTUG

Prepare DEMO …

• Eclipse eclipse-jee-galileo-SR2-win32.zip• jdk1.5.0 or jdk1.6.0• Install Google Plugin for Eclipse• SDK (optional) appengine-java-sdk-1.3.1.zip

Page 19: First Bucharest GTUG event 02 Mar 2010

2 march 2010 - Bucharest GTUG

Hello GAE!

Live demo …

Page 20: First Bucharest GTUG event 02 Mar 2010

2 march 2010 - Bucharest GTUG

Deploy app!

Compiling module ro.gtug.app.demo.HelloGAE.HelloGAE Compiling 6 permutations Compiling permutation 0... Compiling permutation 1... Compiling permutation 2... Compiling permutation 3... Compiling permutation 4... Compiling permutation 5... Compile of permutations succeededLinking into C:\Documents and Settings\Administrator\Desktop\kits\eclipse\workspace\HelloGAE\war\hellogae. Link succeeded Compilation succeeded -- 45.125sCreating staging directoryScanning for jsp files.Scanning files on local disk.Initiating update.Cloning 32 static files.Cloning 56 application files.Uploading 27 files.Uploaded 6 files.Uploaded 12 files.Uploaded 18 files.Uploaded 24 files.Initializing precompilation...Deploying new version.Will check again in 1 secondsWill check again in 2 secondsWill check again in 4 secondsWill check again in 8 secondsClosing update: new version is ready to start serving.Uploading index definitions.Deployment completed successfully

http://bucharest-gtug-demo1.appspot.com/

Page 21: First Bucharest GTUG event 02 Mar 2010

2 march 2010 - Bucharest GTUG

Deploy app for Google Apps!

http://bucharest-gtug-demo1.mydomain.com/

Page 22: First Bucharest GTUG event 02 Mar 2010

2 march 2010 - Bucharest GTUG

Guestbook ExampleSave date to datastore

Local data viewer:http://localhost:8888/_ah/admin

public final class PMF { private static final PersistenceManagerFactory pmfInstance = JDOHelper.getPersistenceManagerFactory("transactions-optional"); private PMF() {} public static PersistenceManagerFactory get() { return pmfInstance; }}

@PersistenceCapable(identityType = IdentityType.APPLICATION)public class Greeting { @PrimaryKey @Persistent(valueStrategy = IdGeneratorStrategy.IDENTITY) private Long id;

@Persistent private User author;

@Persistent private String content;

Page 23: First Bucharest GTUG event 02 Mar 2010

Thanks! Petrica Clement Chiriac (Tica2)petrica (at) gtugs.org http://twitter.com/Tica2

Bucharest GTUG

Questions …

Page 24: First Bucharest GTUG event 02 Mar 2010

Next Bucharest GTUG event! Tuesday 6 April 2010 at Bucharest Hubb (17:30)

Agenda:Google Chrome ExtensionsAndroidHTML 5 and SQL databases

Bucharest