SDA SE Wiki

Software Engineering for Smart Data Analytics & Smart Data Analytics for Software Engineering

User Tools

Site Tools


Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
teaching:labs:xp:2012b:setup [2012/09/06 10:37]
tobias
teaching:labs:xp:2012b:setup [2018/05/09 01:59] (current)
Line 1: Line 1:
 +====== How to setup your machine for the Lab ======
 +===== General Setup =====
 +  * [[http://​www.oracle.com/​technetwork/​java/​javase/​downloads/​jdk-7u3-download-1501626.html|Java 7 SDK]]
 +  * [[http://​nodejs.org/#​download|Node.js]]
 +  * [[http://​www.eclipse.org/​downloads/​packages/​eclipse-ide-java-ee-developers/​junor|Eclipse for Jave EE developers]]
 +    * Copy the [[http://​code.abnoctus.com/​publish/​binaries/​node-launcher/​org.tp23.eclipse.launcher.node_1.0.4.jar|Node Launcher jar]] into your Eclipse'​s plugin directory
 +      * Adapt in //​Preferences//​ - //Node.js// the paths of ''​node''​ and ''​npm''​ (e.g. ''​C:​\Program Files (x86)\nodejs\node.exe''​ and ''​C:​\Program Files (x86)\nodejs\npm.cmd''​
 +    * <​del>​In Eclipse, from //Help// -> // Install new software...//​ select the //Juno// update Site and install the //Eclipse EGit// Plug-in</​del>​
 +    * Add the Chrome DevTools Update Site (http://​chromedevtools.googlecode.com/​svn/​update/​dev/​) and install the //Google Chrome Developer Tools//
 +      * Setup Debugger: ​
 +        * Select //Run -> Debug Configurations...//​
 +        * New Standalone V8 VM
 +        * Change name to //Attach V8 Debugger to node-8888// and port to //8888//
 +  * [[https://​developer.android.com/​sdk/​installing/​index.html|Android SDK]] - https://​developer.android.com/​sdk/​index.html
 +    * In the SDK manager, install //Android 2.3//
 +    * Install the ADT Plug-in (https://​dl-ssl.google.com/​android/​eclipse/​) - //Developer Tools//
 +  * [[http://​github.eclipsesource.com/​jshint-eclipse/​|Eclipse JSHint plugin]] from this update site: [[http://​github.eclipsesource.com/​jshint-eclipse/​updates/​]]
 +  * Install [[http://​windows.github.com/​|GitHub for Windows]]
 +  * [[http://​www.mongodb.org/​downloads|MongoDB]]
 +  * Install [[http://​eclipse.org/​m2e/​|Maven Eclipse plugin]]
 +  * Follow [[pg_client_import_instructions|import instructions]] for the pg_client ​
  
 +
 +SmartGit
 +  * Install [[http://​code.google.com/​p/​msysgit/​downloads/​detail?​name=Git-1.7.11-preview20120710.exe|Git for Windows]], do not register file extensions or explorer integration,​ choose "​checkout windows line endings, commit unix line endings"​
 +  * Unpack [[http://​www.syntevo.com/​smartgit/​download.html?​file=smartgit/​smartgit-portable-3_0_9.zip| Smartgit Portable]]
 +  * Choose Free Non-Commercial License
 +
 +
 +
 +==== Getting a new project ====
 +
 +  * Switch to the Git Repository Exploring Web Site
 +  * //Clone a repository//​ (e.g. https://​github.com/​geoquest/​node_test.git)
 +    * On the third wizard page, select //Projects -> Import all existing projects after cone finishes//
 +
 +==== Running a node.js app ====
 +
 +  * Right click the //js//-File and select //Run As -> node application//​
 +
 +==== Debug a node.js app ====
 +
 +  * Right click the //js//-File and select //Debug As -> node application//​
 +  * Run the V8-Debugger to attach the debugger to the node process
 +
 +  * More on debugging:
 +    * [[https://​github.com/​joyent/​node/​wiki/​Using-Eclipse-as-Node-Applications-Debugger|Eclipse as Node debugger]]
 +
 +==== Run a test ====
 +
 +  * Right click the Test-//​js//​-File and select //Run As -> nodeunit test//
 +    * If the binary can not be found, open //Run -> Run Configurations...//​ and change the Node-Binary path to your projects'​s ''​node_modules/​.bin/​nodeunit[.cmd]((for Windows))''​ path
 +
 +  * More on tests:
 +    * [[http://​caolanmcmahon.com/​posts/​unit_testing_in_node_js/​|Unit testing in Node.js]]
 +      * [[https://​github.com/​showcase/​nodeunit-httpclient/​blob/​master/​README.md|With httpclient]]
 +      * [[https://​github.com/​arunoda/​nodemock/​blob/​master/​README.md|With mocking]]
 +
 +==== Setup a new project (if required) ====
 +  * //New// -> //​JavaScript Project//
 +  * Add folder ''​tests''​ (for the tests :-) )
 +  * Add folder ''​node_modules''​ (for additional node modules)
 +    * Select the project'​s //​Properties//,​ and from the //​JavaScript -> Include Path// exclude this folder (to avoid warnings/​errors on validation)
 +    * In a terminal, navigate to the project folder and run ''​npm install nodeunit''​
 +    * Optionally: ''​npm install nodeunit-httpclient''​ and ''​npm install nodemock''​
 +  * Add a text-file ''​.travis.yml''​ with this content:
 +<​Code>​
 +language: node_js
 +node_js:
 +  - 0.8
 +</​Code>​
 +  * Add a text-file ''​package.json''​ with this content:
 +<​Code>​
 +{
 +  "​name":​ "​..."​
 +  , "​version":​ "​1.0.0"​
 +  , "​scripts":​ { "​test":​ "​node_modules/​.bin/​nodeunit tests/​*"​ }
 +
 +  , "​description":​ "​.."​
 +  , "​author":​ "​.."​
 +  , "​homepage":​ "​.."​
 +  , "​contributors":​ [ "​..."​ ]
 +  , "​keywords":​ ["​.."​]
 +}
 +</​Code>​
 +
 +==== Getting started with Git ====
 +
 +A hands-on introduction into Git for beginners can be found at [[http://​try.github.com]]. It takes about 15 minutes and you will learn to use the common commands.
 +
 +To see some advanced commands and to learn how these affect the different layers of Git, the [[http://​www.ndpsoftware.com/​git-cheatsheet.html|Git Cheatsheet]] is a good starting point. It is presented really well and can also be used as a simple reference, therefore, it is definitely worth a look.
teaching/labs/xp/2012b/setup.txt · Last modified: 2018/05/09 01:59 (external edit)

SEWiki, © 2019