-
Notifications
You must be signed in to change notification settings - Fork 0
Getting Started
- Install Git
- Install Maven 3.0+
This guide assumes that you use maven to build your projects. If you don't then adjust accordingly.
$ git clone [email protected]:teatrove/teatrove.git
This will create a teatrove directory in the current directory.
$ cd teatrove
$ mvn install
This should install Tea, the TeaServlet and Trove into your maven repository.
If your deploying your TeaServlet application as a WAR file then the packaging type in your maven file can be specified as such.
The examples directory contains various example web applications that can help you get up and going. Each web application is bundled as a standard WAR. The WAR file is available in each example's target directory. Simply deploy the WAR file to your application server (Servlet 2.5+) of choice (Tomcat, Glassfish, JBoss, etc). For more information on deploying the web application, consult the documentation for the application server of choice.
Assuming you've completed the "Building TeaTrove" section above...
$ cd examples/directory-browser
$ mvn jetty:run
This will launch the directory-browser example using Jetty. Open http://localhost:8080/directory-browser/ in your favorite web browser and navigate around a couple times. Open http://localhost:8080/directory-browser/system/console?secret=password to take a look at the Admin Console which you can read more about in the next section.
The TeaServlet comes with a very powerful administrative console that can help you compile templates and analyze performance.
http://mydomain/path-deployed-to/system/console?key=value
where key and value are properties that are setup in the TeaServlet properties file. If the TeaServlet is deployed as a ROOT.war the admin console will be available here:
http://mydomain/system/console?key=value