Version 18.1 by David Holt on 2007/06/20 19:12

Show last authors
1 **Getting Started with BugTracker**
2
3 #Import the following source code folders from CVS according to the [[tutorial>>http://wiki.objectstyle.org/confluence/display/WOL/Project+Wonder+woa+with+Linked+Source]]. You may need to adjust the exact folders you import depending on the database you plan to use. In this case, I have added the FrontBase plugin as well as all the other frameworks that BugTracker expects to find in its build path:
4
5 [[image:Context-023.jpg]]
6 [[image:Context-024.jpg]]
7 [[image:Context-025.jpg]]
8
9 ----
10
11 #Check out the folders into their own projects in your workspace.
12
13 [[image:Context-026.jpg]]
14
15 ----
16
17 #Your workspace should look roughly like this once it has completed rebuilding:
18
19 [[image:Context-027.jpg]]
20
21 ----
22
23 #First order of business is to find your Properties file by turning off the filter that is on by default:
24
25 [[image:Context-028.jpg]]
26
27 ----
28
29 #Uncheck the item selected in the image below:
30
31 [[image:Context-029.jpg]]
32
33 ----
34
35 #Change the properties located in the resources folder to match the requirements for your database. I use Frontbase. You can either set Global properties for your database, or by model as per the instructions in [[ERXConfigurationManager documentation>>http://webobjects.mdimension.com/wonder/api/er/extensions/ERXConfigurationManager.html]]
36
37 ~-~--
38 Changing the connection dictionary
39 To do this for Oracle you can either specify on a per model basis or on a global basis.
40 Global:
41 dbConnectServerGLOBAL = myDatabaseServer
42 dbConnectUserGLOBAL = me
43 dbConnectPasswordGLOBAL = secret
44 dbConnectPluginGLOBAL = Oracle
45 Per Model for say model ER:
46 ER.DBServer = myDatabaseServer
47 ER.DBUser = me
48 ER.DBPassword = secret
49 ER.DBPlugin = Oracle
50 ~-~--
51
52 Here are the settings I used for FrontBase:
53
54 #ERXConfigurationManager properties moved in from Properties.ak
55 #Original Settings for Postgresql
56 #Changed to Frontbase
57 dbConnectURLGLOBAL=jdbc:frontbase:~/~/localhost/bug
58 dbConnectUserGLOBAL=//system
59 dbConnectPluginGLOBAL=Frontbase
60 #dbConnectDriverGLOBAL=org.postgresql.Driver
61 #dbConnectPasswordGLOBAL =
62 dbEOPrototypesEntityGLOBAL=EOJDBCFrontBasePrototypes
63 er.javamail.adminEmail=foo@localhost.com//
64
65 Make sure that the build path contains the plugin for your database;
66
67 [[image:Context-030.jpg]]
68
69 ----
70
71 #Now we want to run the app. The Wonder team has set it up so that you can generate all necessary tables and populate them when you launch the BugTracker application for the first time using a special launch configuration.
72
73 You'll see BugTracker launch configurations for creating, creating without dropping, and normal launching. We need to select the BugTracker (create without drop) launch configuration for the initial setup.
74
75 [[image:Context-031.jpg]]
76
77 ----
78
79 #We do that by selecting Run as > Run...
80
81 [[image:Context-032.jpg]]
82
83 ----
84
85 #In the resulting dialog box, select BugTracker (create without drop). If you try to use (create) you'll get a bunch of errors complaining about lack of tables in the database.
86
87 [[image:Context-033.jpg]]
88
89 ----
90
91 #You'll see a long list of things being done in your console window that takes several minutes. When you get the final Done message, your database is set up and ready to go. You can log into your database to confirm that the tables have been magically created and populated.
92
93 Now select BugTracker as your launch configuration to start the application:
94
95 [[image:Context-034.jpg]]
96
97 ----
98
99 #You should see a login screen. Your default administrative user is "admin" with password "admin"
100
101 [[image:Context-035.jpg]]
102
103 ----
104
105 #Explore!!