Getting started Grails - Pyosch/powertac-server GitHub Wiki
Getting Started with the Grails-based Power TAC simulation server
Prerequisites
- Required Software
- JDK
- Grails 1.3.7
- Git
- Integrated Development Environment. We recommend IntelliJ IDEA v10, NetBeans, or SpringSource ToolSuite (a customized eclipse version with default support for Groovy and Grails)
Reading Material
In order to get familiar with the grails framework we're using and to fully understand the development/deployment process, we recommend you get familiar with:
- Grails
- Git
If you're contributing, please read and follow our Development Policies completely.
Downloading and running the Power TAC Server
cd /your/target/checkout/directory
git clone https://github.com/powertac/powertac-server.git
- Repeat Step 2 for
git clone https://github.com/powertac-plugins/powertac-common.git
git clone https://github.com/powertac-plugins/powertac-server-interface.git
git clone https://github.com/powertac-plugins/powertac-web-app.git
git clone https://github.com/powertac-plugins/powertac-style.git
git clone https://github.com/powertac-plugins/powertac-random.git
git clone https://github.com/powertac-plugins/powertac-genco.git
git clone https://github.com/powertac-plugins/powertac-auctioneer-pda.git
git clone https://github.com/powertac-plugins/powertac-accounting-service.git
git clone https://github.com/powertac-plugins/powertac-household-customer.git
git clone https://github.com/powertac-plugins/powertac-physical-environment.git
git clone https://github.com/powertac-plugins/powertac-distribution-utility.git
git clone https://github.com/powertac-plugins/powertac-default-broker.git
git clone https://github.com/powertac-plugins/powertac-visualizer.git
git clone https://github.com/powertac-plugins/powertac-db-stuff.git
cd powertac-server
grails run-app
- Should the process fail because a Spring Security or some other dependency is missing, re-run
grails run-app
and it should download the necessary dependencies.
After downloading additional dependencies and plugins the server will initialize itself, start locally on your computer, and indicate its ready state:
Server running. Browse to http://localhost:8080/powertac-server
Browse to http://localhost:8080/powertac-server to check that your server is up and running correctly. Here you can set up local competitions in order to test your own Power TAC client.
Downloading and running the Power TAC Grails Demo Agent
cd /your/target/checkout/directory
git clone https://github.com/powertac/powertac-demo-agent-grails.git
cd powertac-demo-agent-grails
grails run-app
or, if you are running the server and client on the same machine:grails -Dserver.port=9090 run-app
Browse to http://localhost:9090/powertac-demo-agent-grails to check that the demo agent is running correctly.
- You will have to enter a valid web-app destination if you're running a tournament configuration. Since you are most likely to run a research configuration, enter the URL of your local Power TAC server http://localhost:8080/powertac-server if necessary.
- In the default "research" mode, there is no need to create an account for your Broker. It should be able to log in without a password.
Developing Custom Power TAC Plugins (Customer, Auctioneer, Weather, etc.)
Please refer to the plugin development getting started guide.