Skip to content

aurickq/rgserver

 
 

Repository files navigation

Robot Game server code

Please use github issues for server code/infrastructure related tasks/bugs/feature requests.

Dev environment setup using Vagrant

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.

Workflow:

  1. Fork and checkout project
  2. Create a virtualenv and install requirements with "pip install -r requirements.txt".
  3. 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!)
  4. Code to your satisfaction.
  5. 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. :)

Postgres setup

(Presumes a brand new, fresh Ubuntu 14.04 install)

  1. sudo apt-get update
  2. sudo apt-get install postgresql-9.3 postgresql-client-9.3
  3. sudo -u postgres createuser --interactive
    1. role to add: robot
    2. superuser: n
    3. create databases: y
    4. create roles: n
  4. Enter PROJECT_PATH/config
  5. postgres -U robot -h localhost < db_schema.sql

rgsandbox setup

To clone rgsandbox, run git submodule update --recursive.

Notes

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.

About

Official robotgame.net server

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 61.2%
  • CSS 28.6%
  • Python 9.9%
  • Other 0.3%