Building the testmodel application
- Ensure that you have the required software installed, including Tomcat.
- Checkout the latest InterMine code with subversion (svn co svn://subversion.flymine.org/trunk/).
- Create a file called 'testmodel-webapp.properties' in your home directory with the following contents. This file tells the testmodel application which databases to use. You will need to change the properties to your own database server and database username/password. Each block of commands expects, that you are in the trunk directory.
db.userprofile-test.datasource.serverName=test_host
db.userprofile-test.datasource.databaseName=testmodel-webapp-userprofile
db.userprofile-test.datasource.user=test_user
db.userprofile-test.datasource.password=secret
db.unittest.datasource.serverName=test_host
db.unittest.datasource.databaseName=testmodel-webapp
db.unittest.datasource.user=test_user
db.unittest.datasource.password=secret
- Create another file in your home directory called 'build.properties.testmodel-webapp'. This file is used to store some developer specific build properties. Adjust these properties to point to your local Tomcat. It should look something like this:
# You don't really need to change these
project.helpLocation=http://www.flymine.org/doc/manual
project.sitePrefix=http://www.flymine.org/flymine
project.releaseVersion=test
# You may want to change the following 6 properties:
webapp.deploy.url=http://localhost:8080
webapp.path=intermine-test
webapp.manager=manager
webapp.password=manager
# It doesn't work now, logs are saved in bin directory of tomcat
webapp.logdir=/var/logs
# It must be valid email address
superuser.account=you@yourdomain.com
# You don't need to change these
webapp.os.alias=os.unittest
webapp.userprofile.os.alias=osw.userprofile-test
- You should now manually create the databases needed by the testmodel application. Execute:
createdb testmodel-webapp
createdb testmodel-webapp-userprofile
- Now initialise the intermine build system (you only ever need to do this once).
cd imbuild/im-ant-tasks
ant
- Now initialise the two databases:
cd testmodel/dbmodel
ant build-db
ant insert-data-unittest
cd testmodel/webapp/main
ant build-db-userprofile
- Build the testmodel web application and release to the running tomcat:
cd testmodel/webapp/main
ant
ant release-webapp
- Browse to http://localhost:8080/intermine-test to view the web interface for the testmodel application.
See: GettingStarted, MalariaMine tutorial