Uniscala Granite - Getting Started
To use Granite, you'll need to know how to write Apache Wicket applications, and have a basic working knowledge of Versant DB4O.
Here is a brief "getting started" guide for a new applications:
- Check the uniscala source out of SourceForge:
$ svn co https://uniscala.svn.sourceforge.net/svnroot/uniscala/trunk uniscala - Build/install Granite using maven:
$ cd uniscala $ mvn install - Create a new project using the Granite maven archetype:
$ cd somewhere/else $ mvn archetype:generate \ -DarchetypeGroupId=net.uniscala \ -DarchetypeArtifactId=granite-archetype \ -DarchetypeVersion=1.0-SNAPSHOT \ -DgroupId=net.example -DartifactId=myapp - Run your new Granite application:
$ cd myapp $ mvn jetty:run - Point your browser to http://localhost:8080/ to see the running application.
- Point your browser to http://localhost:8080/login?super=1 to log in as "super", the super user. The username/password is super/granite456 - they are configured in the application's web.xml file.
Alternatively, you can run the "examples" Granite application in the granite-example module, although the examples there are quite basic at the moment. Currently there is only one example. To run the example application, from the directory where you checked out Uniscala:
$ cd uniscala-granite/granite-example $ mvn jetty:run
and use the same 'localhost' URLs as above to access the running application.