GithubHelp home page GithubHelp logo

morlandi / djaxelrod Goto Github PK

View Code? Open in Web Editor NEW

This project forked from meatballs/djaxelrod

0.0 3.0 0.0 495 KB

A repository to reproduce Axelrod's iterated prisoner's dilemma as a Django based web application.

License: MIT License

Python 42.28% HTML 11.79% CSS 0.66% JavaScript 34.94% Shell 10.34%

djaxelrod's Introduction

https://badge.waffle.io/Axelrod-Python/DjAxelrod.svg?label=ready&title=Ready Join the chat at https://gitter.im/Axelrod-Python/DjAxelrod

DjAxelrod

A repository to extend the work in our related project, Axelrod by creating a Django based web application.

You can read about the background to this work at http://axelrod.readthedocs.org/en/latest/

Installation

Pre-Requisites

There are four software tools which you will need on your machine for this project:

Setup

  • Clone this repository to your machine:

    git clone https://github.com/Axelrod-Python/DjAxelrod.git
    cd djaxelrod
    
  • Create a Virtual Machine to host the DjAxelrod application:

    cd <path to your cloned repository>
    vagrant up
    

This step will take some time. It has to download the operating system and all the tools to install on your new virtual machine.

Usage

  • Your virtual machine is running a web server which will detect any changes that you make to the project's code and show their effect immediately at http://localhost:8000.

  • When you have finished working on the project, you can shut down your virtual machine using:

    vagrant halt
    
  • And when you are ready to start work once again, bring the virtual machine back up with:

    vagrant up
    
  • If you need to restart your virtual machine for any reason, you can use:

    vagrant reload
    
  • You can login to your virtual machine and then administer it using:

    vagrant ssh
    
  • You can issue a command to your virtual machine without logging into a shell. e.g. to run django migrations:

    vagrant ssh -c "cd /vagrant; python manage.py migrate"
    
  • If you need to re-run the setup and configuration of your virtual machine, use:

    vagrant reload --provision
    
  • And, if you break it completely and need to start again, then use:

    vagrant destroy
    vagrant up
    

(This will be slightly quicker than the first time as it will not need to download the operating system. It will still take some time, however).

  • You can connect to the postgresql database on your virtual machine from any client on your host machine. It's running on port 8432 and the username is 'djaxelrod'. e.g.:

    psql -h locahost -p 8432 -U djaxelrod
    

djaxelrod's People

Contributors

meatballs avatar nealedj avatar fredkingham avatar drvinceknight avatar mmcardle avatar morlandi avatar gitter-badger avatar

Watchers

 avatar James Cloos avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.