This application is used to approve, monitor, review, and track research done by faculty at Clayton State University.
This was developed as a part of my senior project for the Computer Science program.
The application has the following dependencies:
- Java 7
- Grails 2.3.7 (not needed if using the Grails wrapper)
- MySQL
Begin by cloning the repository (or downloading the source from this repository).
$ git clone https://github.com/caseyscarborough/irb
$ cd irb
Update the DataSource.groovy file with the credentials and database name used for your MySQL database.
dataSource {
pooled = true
driverClassName = "com.mysql.jdbc.Driver"
dialect = "org.hibernate.dialect.MySQL5InnoDBDialect"
username = "root" // Set your username and password here
password = ""
dbCreate = "none"
}
environments {
development {
dataSource {
// Update the connection string below
url = "jdbc:mysql://localhost:3306/irb_development"
}
}
}
Edit the Config.groovy file with your desired configuration.
irb {
// Filetypes that can be uploaded with an application
supportedFiletypes = [ 'PDF', 'JPG', 'PNG', 'GIF', 'DOCX', 'DOC', 'XLS', 'XLSX', 'JPEG' ]
// The max file size for an uploaded file
maxFileSize = 100000000 // 100MB
// The location to upload user's files to
uploadLocation = "/path/to/directory" // Unix-based OS
uploadLocation = "C:\\Path\\To\\Directory" // Windows-based OS
}
Then run the Grails database migrations on your database to create the necessary schema.
Note: All Grails commands can be run without Grails being installed by using the Grails wrapper in this repository. Just replace each call to the
grails
command with thegrailsw
orgrailsw.bat
file (depending on your OS).
$ grails dbm-update
You should now be able to start up the application.
$ grails run-app
Navigate to localhost:8080/irb in your browser to see the application in action.
To deploy the application, ensure that the necessary configuration options shown above have been set, then issue the following command from the root of the application:
$ grails war irb.war
The WAR file will be generated at target/irb.war
, which can then be uploaded and deployed to Tomcat or the application server of your choice.