Setting up OpenMRS development environment

I have run OpenMRS in a couple of machines in Linux as well as in Windows over the past month. Today I set it up in my desktop machine which I am planning to use these days. I have Kubuntu 8.04 with MySQL server 5.0, JDK 1.6, Apache Ant 1.7 and Apache Tomcat 6.

Checked out the source from http://svn.openmrs.org/openmrs/trunk

Added Tomcat user account with the manager role: <user username=”openmrs” password=”openmrs” roles=”admin,manager,tomcat”/>

Started Tomcat server.

Logged in to MySQL server as root.

Ran the SQL scripts, 1.3.0-createdb-from-scratch-with-demo-data.sql and update-to-latest-db.mysqldiff.sql, in that order.

Created the MySQL user account openmrs:

create user openmrs@localhost identified by ‘openmrs’; set password for openmrs@localhost=PASSWORD(‘openmrs’);
grant ALL on openmrs.* to openmrs;

Created the .OpenMRS directory in the home directory and created the build and runtime properties files with the following contents.

openmrs-build.properties:
### name of generated war file
webapp.name=openmrs
webapp.display.name=OpenMRS
webapp.description=Open-Source EMR for Developing Countries

###Properties for running unit tests with tomcat###
tomcat.home=/home/upul/tomcat
tomcat.server=localhost
tomcat.port=8080
tomcat.manager.url=http://${tomcat.server}:${tomcat.port}/manager
tomcat.username=openmrs
tomcat.password=openmrs

openmrs-runtime.properties:
### Database connection properties
connection.username=openmrs
connection.password=openmrs
connection.url=jdbc:mysql://localhost:3306/openmrs?autoReconnect=true

Ran ant install in OpenMRS project directory.

That’s it. http://localhost:8080/openmrs/ (admin/test)

Explore posts in the same categories: OpenMRS

Tags: ,

You can comment below, or link to this permanent URL from your own site.

Leave a comment