Education: Getting Started with EWD in the OSEHRA VM

 

Hands-on practice with the VM and EWD.

These are notes from a class exercise done at the Rensseler Polytechnic Institute.

 

The VM used here was kindly put together by Christopher Edwards on early September 2012 (Thanks Chris !)
 
You can do the same by using the dEWDrop VM kindly built and distributed by David Wicksell at http://www.fourthwatchsoftware.com/  (with only slight changes in the location of directories).
 
 
Exercise Steps
 

1) Launch the Virtual Machine

2) open a terminal

3) cd /usr/ewdapps

4) mkdir ewddemo

5) cd ewddemo

6) gedit helloworld.ewd

and in the helloworld.ewd file put the following code:
 
<ewd:config>
 
<html>
 
<head>
 
<title>Hello World</title>
 
</head>
 
<body>
 
<p>Hello World !</p>
 
</body>
 
</html>
 

7) Save the file and quit the editor

8) Remain in the same directory: /usr/ewdapps/ewddemo

9) from the terminal launch GTM by typing:     gtm

10) In the GTM> prompt type:

do compileAll^%zewdAPI("ewddemo")
 

11) This should display the messages:

/usr/ewdapps/ewddemo/ewdAjaxError.ewd
/usr/ewdapps/ewddemo/ewdAjaxErrorRedirect.ewd
/usr/ewdapps/ewddemo/ewdErrorRedirect.ewd
/usr/ewdapps/ewddemo/helloworld.ewd

 

12) Once this is done, open the Firefox web browser

13) In the browser go to the URL

http://127.0.0.1/ewd/ewddemo/helloworld.ewd

 

14) This should display in your browser the traditional "Hello World!" message.

 

Welcome to EWD !

 

For  more details, please look at:

http://gradvs1.mgateway.com/main/

and the Google group:

https://groups.google.com/forum/?hl=en&fromgroups#!forum/enterprise-web-developer-community

 

NEXT:

http://www.osehra.org/blog/education-getting-started-ewd-and-extjs-osehra-vm

http://www.osehra.org/blog/education-getting-started-ewd-and-sencha-touch-2-osehra-vm

 

like0