Windows Set up of Survey Appx

coldwaterphewΔιακομιστές

17 Νοε 2013 (πριν από 3 χρόνια και 11 μήνες)

112 εμφανίσεις

B
it

Level

S
olutions

3/22/2012



manjeet@bitlevelsolutions.com

3/22/2012




Steps to

set up Survey application

on
Windows
platform


Goal

This
document contains the steps used to set up the Survey Application code on the
Windows Platform.


Install Java

The first step would be to install Java on your computer
(x86/x64 depending on your
system configuration).
You can download the java
exe

file from the following
location
:

http://www.oracle.com/technetwork/java/j
avase/downloads/jdk
-
7u3
-
download
-
1501626.html

B
it

Level

S
olutions

3/22/2012



manjeet@bitlevelsolutions.com

3/22/2012





After downloading the exe file double click it and install the Java by following the
instructions step wise.

Install Tomcat Server

Download and install Tomcat Server fro
m the following Link (32
-
bit /
64 Bit
depending on

your computer configuration
):


http://tomcat.apache.org/download
-
60.cgi


B
it

Level

S
olutions

3/22/2012



manjeet@bitlevelsolutions.com

3/22/2012





After downloading the zip file, extract its contents on your local drive. For e.g.
C:
\
Program Files
\
apache
-
tom
cat
-
6.0.18


Install Mysql Database

Download and Install Mysql Database from

the below link (32
-
bit /
64 Bit depending
on

your computer configuration
):

http://dev.mysql.com/downloads/installer/



B
it

Level

S
olutions

3/22/2012



manjeet@bitlevelsolutions.com

3/22/2012




1.

After downloading run the
installer
.exe file
and f
ollow the instructions
on the
set up wizard
launched
.

Please use
username: root

and
password
: admin

for the
mysql server
. If you have defined different username and password
during mysql server setup then
you will

need to set username and password
in config.properties under SurveyApp and SurveyTaker project, so that
source code can be connected to

mysql server database using the new
credentials.


Install Eclipse IDE

Download Eclipse (Eclipse IDE for Java E
E Developers) from
the l
ink
:

http://www.eclipse.org/downloads/


After downloading the zip file extract it in your local hard drive and you can use the
eclipse.exe file to launch the eclipse.


B
it

Level

S
olutions

3/22/2012



manjeet@bitlevelsolutions.com

3/22/2012





Install
Mysql Client

Tools


Install the mysql client
GUI tools
which
helps in

editing/creating any mysql
database

using a GUI
.

The link used is:

http://dev.mysql.com/downloads/workbench/5.2.html



After installation the following links will be visible in your windows start menu.

B
it

Level

S
olutions

3/22/2012



manjeet@bitlevelsolutions.com

3/22/2012





You can use Mysql Query browser from the
above
menu and configure the

survey


database as follows:

B
it

Level

S
olutions

3/22/2012



manjeet@bitlevelsolutions.com

3/22/2012






Run the database script for the survey database in
-
order to create the database on
your system by using these steps in the query browser.

File
-
> New Script tab
-
>
a

new tab appears. Copy and paste the
DB
script

in it

and
click on the “Execute” button.
You database will be shown inside the right panel
under the heading “Schemata”

(FYI: the database script is kept at the SurveyApp code repository in the directory
named “database script”)


Checkout the application
code

Now, you should checkout the SurveyApp and SurveyTaker application code in your
local workspace .The following steps should be performed for the same.

1.

Double click the eclipse.exe file to open it . Create a workspace in your
local
directory say D:/SurveyCode

Provide the password as given by you while
installing the mysql
server

(in our case it
should be: admin)


B
it

Level

S
olutions

3/22/2012



manjeet@bitlevelsolutions.com

3/22/2012







2.

Checkout the code from the remote repository into the workspace. Choose
Window
-
>Open perspective
-
>Other
-
>SVN repository Exploring


B
it

Level

S
olutions

3/22/2012



manjeet@bitlevelsolutions.com

3/22/2012






And click OK button. Right click inside the SVN Repositories tab
-
>New
-
>
Repository
location

B
it

Level

S
olutions

3/22/2012



manjeet@bitlevelsolutions.com

3/22/2012





A new window will open asking for the remote URL. Please specify the following URL
for the SurveyApp repository
http://subversion.assembla.com/svn/bitlevelsolutions/trunk/surveyApp

and click “Finish”.

The repository
will be listed under tab
. Now right click on it and choose “checkout”

B
it

Level

S
olutions

3/22/2012



manjeet@bitlevelsolutions.com

3/22/2012





A new window will open. Click “Finish” button.
The
SurveyApp project will be
ch
ecked out in your local machine

Follow the same steps for SurveyTaker application
. The URL for it will be:

http://subversion.assembla.com/svn/bitlevelsolutions/trunk/sur
veyTaker

Now
,
in
-
order
to see the application code inside the
eclipse
. Select Window
-
> Open
perspective
-
>Java. The application directory structure will be shown in
the
left
panel under “Project Explorer” tab.

Configure Tomcat server in
eclipse

Follow the

below steps to configure tomcat in you eclipse.

1.

Click Windows
-
> Preferences
-
>Server
-
> Installed Runtime
s

to create a
Tomcat runtime and click Add.


B
it

Level

S
olutions

3/22/2012



manjeet@bitlevelsolutions.com

3/22/2012






2.

Select the type of runtime environment
-
>Apache tomcat v6.0

3.

Click

next and browse your tomcat installation directory path.


B
it

Level

S
olutions

3/22/2012



manjeet@bitlevelsolutions.com

3/22/2012





4.

Click Ok and then Finish
.

5.

Now right click inside the server tab and choose New
-
>server




B
it

Level

S
olutions

3/22/2012



manjeet@bitlevelsolutions.com

3/22/2012







6.

A new window is shown
, select Tomcat v6.0server in it and click “Finish”.

7.

The server will be listed

in the Server tab.

R
ight click on
the
server and select
add/remove applications and add both SurveyApp and SurveyTaker in the
server
.

8.

Start Tomcat by right clicking

on the listed Server and choose
-
>Start.


Open
any
browser

e.g. Firefox

and type the follo
wing
URLs

to run the applications
:

http://localhost:8080/SurveyApp

http://localhost:8080/SurveyTaker