Building the testmodel application
- Check that you have the required software installed and configured, see prerequisites.
- Get the InterMine software
- Create a file called 'testmodel.properties'
- 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.
- Put it in ~/.intermine with the following contents.
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 # 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 two databases:
cd testmodel/dbmodel ant clean 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 default release-webapp
If you have previously released a webapp to /intermine-test you will need to remove it as well:cd testmodel/webapp/main ant default remove-webapp release-webapp
- Browse to http://localhost:8080/intermine-test to view the web interface for the testmodel application.
See: GettingStarted, QuickStart
