The following instructions on how to setup the CCASH client for development may also be found in the Ccash project under docs/how-to. Edits here should be refelected back to the project.
Ccash uses Hibernate to interface with a database server on the backend, which allows data to be persistent. In order to run Ccash, you need to point it either to a local database (one you've set up on your own machine), or else to a remote one. For your convenience, we have set up a mysql server at cash.cs.byu.edu which can be accessed from on BYU campus. This will probably be available until we actually deploy Ccash in the wild, at which time we'll have to make that server unavailable for development. Or, if you want faster access and more control, install and set up your own local database.
This is available only if you are developing on campus (BYU firewalls block all incoming requests on 3306).
<property name="connection.url">jdbc:mysql://localhost:3306/ccash</property>
<property name="connection.url">jdbc:mysql://cash.cs.byu.edu:3306/ccash</property>
These instructions assume you want to create a database named “ccash” and a user named “ccash” with no password and all privileges in the database “ccash”. This obviously is not particularly secure. It's for development. If you want to customize your installation, feel free. You'll need to adjust the settings in src/hibernate.cfg.xml. Just make sure you don't commit your changes back to the project svn repository.
create user ccash;
GRANT ALL on ccash.* to 'ccash'@'localhost';
====Populate your database====
mysql -u ccash < createDatabase.sql