PTAnywhere / ptAnywhere-frontend

JavaScript library for the PT Anywhere API and some HTML widgets which use it.
3 stars 0 forks source link

PT Anywhere frontend

JavaScript library for the PT Anywhere HTTP API and some HTML widgets which use it. Both components are being developed as part of the FORGE project. For more information about PT Anywhere, please check its official website.

Cloning it

Note that this project uses submodules. Therefore, it is best if you use the recursive option while cloning the repository.

git clone --recursive [this project]

Usage

As this project uses Maven, you can compile and deploy it using the following command:

mvn clean exec:exec

By default, the app will be deployed in the development server. Use any of the following commands to deploy it in other environments:

mvn clean exec:exec -Denv=devel  # Development environment (explicitly stated)
mvn clean exec:exec -Denv=test  # Testing environment
mvn clean exec:exec -Denv=prod  # Production environment

Additionally, you can also define your own environment in a property file. The easiest way to do this is by using an existing property file as a template (e.g., the development environment one). If you choose this approach, use the following command:

mvn exec:exec -Denv=custom -DpropFile=[PATH-TO-YOUR-PROPERTY-FILE]

Please, note that you need to configure your web server before using the tomcat deployment command shown above. If you are using Tomcat6, you might need to consider this too.