Wednesday, January 27, 2010

Project 1

Due Date: Sunday, 31 January


Familiarity with
  • Software installation process
  • Eclipse
  • Mercurial (hg)
  • Synchronization between workspace and public web folder using hg


Your job is as follows:
  1. Install the software for this course, especially if you are doing your work outside the departmental labs. You are encouraged to discuss any issues you encounter on the mailing list.
  2. Familiarize yourself with Eclipse and the JavaScript project support.
  3. In Eclipse, create a new JavaScript project called, e.g., HelloJavaScript.
  4. Within this project, create at least one (X)HTML page; be sure to choose XHTML 1.0 Strict as document type.
  5. Add some content to your page(s). You may find this reference useful.
  6. Open the page(s) in the various ways available within Eclipse: HTML editor, text editor, web browser, web page editor.
  7. Right-click on the HelloJavaScript project node in the project explorer and share with Mercurial using Team > Share Project..., then choose Mercurial, then press finish.
  8. Log in to and navigate to your course folder created in project 0
  9. Create a subfolder with the same name as your project.
  10. Now cd into the subfolder and run hg init. Then run pwd and take note of the result. 
  11. Finally, set up an auto-update hook by creating the file (still in the subfolder) .hg/hgrc with content 
  12. [hooks]
    changegroup = hg update
  13. Back in Eclipse, right-click on the HelloJavaScript project node and Team > Push the project to URL ssh:// You should now see one or more files in that remote subfolder. (Every time you add new local resources, be sure to commit them locally before pushing them to the remote repository.)
  14. To verify that remote publishing was successful, also view your project through its public URI by appending HelloJavaScript to your course folder's URI.



To submit this project, please send me email with the URI of your project folder.

No comments: