Robot Game server code
Please use github issues for server code/infrastructure related tasks/bugs/feature requests.
First, download and install Vagrant and VirtualBox for your operating system. For Linux and OSX, run vagrant up
in the project directory. The Windows instructions should be similar. This should take 5-10 minutes (depending on your connection) and will set up your dev environment automatically.
When the above finishes, you should be able to view your local robotgame server at localhost:8080
using your favorite browser.
Run vagrant ssh
to SSH into the VirtualBox VM running your server. Make some changes and run rg restart
to see those changes.
For more on using Vagrant, see the Vagrant documentation.
- Fork and checkout project
- Create a virtualenv and install requirements with "pip install -r requirements.txt".
- Copy all the X.example files and remove the ".example" suffix, edit them according to your local environment. (If someone wants to explain in more detail what's involved here, please do so!)
- Code to your satisfaction.
- Make a pull request and wait for a committer to review and merge your code. Ping on IRC if it's taking more than a couple days to get a response. :)
(Presumes a brand new, fresh Ubuntu 14.04 install)
sudo apt-get update
sudo apt-get install postgresql-9.3 postgresql-client-9.3
sudo -u postgres createuser --interactive
- role to add: robot
- superuser: n
- create databases: y
- create roles: n
- Enter PROJECT_PATH/config
postgres -U robot -h localhost < db_schema.sql
To clone rgsandbox, run git submodule update --recursive
.
Thank you.
Yes, in the interest of getting this code out there, I'll leave README just as is. Feel free to elaborate and make this better and easier for a new dev.