Giter VIP home page Giter VIP logo

eve-armada's Introduction

eve-armada

About

EVE Armada is a website to explore the eve universe and your characters, corporations and alliances.

Installation

To setup armada, you will need the following:

  • git
  • virtualenv
  • python 2.7
  • pip
  • postgresql (with devel package)
  • rabbitmq

Install the respective packages, create a database named armada and make sure your user has access to that.

Virtualenv

Setup a virtualenv to run armada:

mkdir eve-armada
cd eve-armada
virtualenv env

Clone eve-aramada from github.

git clone git://github.com/kriberg/eve-armada.git

Install requirements

Activate the virtualenv and install eve-armada python requirements.

source env/bin/activate
pip install -r requirements.txt

local_settings.py

Setup your local_settings.py with your database configuration, celery broker configuration, media root, smtp settings etc.

Install eve SDE

Grab one of the postgresql eve SDE conversions from http://zofu.no-ip.de/ and import it into the database you created. The reloaddb script is only intended for development environments, as it will scratch your entire database when run. Import the dump will probably take quite a while. The script will also create the file eve_table_names.txt, which will be used to generate models for the SDE tables.

cd data
wget http://zofu.no-ip.de/inf12/inf12-pgsql-v1-unquoted-compatible.sql.bz2
bunzip2 inf12-pgsql-v1-unquoted-compatible.sql.bz2
./reloaddb.sh inf12-pgsql-v1-unquoted-compatible.sql
cd ..

Generate SDE models

After loading the eve static data export, we generate the django models for the dump and put those in eve/ccpmodels.py.

python manage.py generateevemodels data/eve_table_names.txt > armada/eve/ccpmodels.py

Fix compound keys

The SDE uses compound primary keys for some tables, which django in turn doesn't support. For these, we will need to add single-column primary keys. The generateevemodels management command will detect these tables and add some sql, for you to run, at the end of eve/ccpmodels.py. Copypaste that into a psql prompt to create the needed columns.

Syncdb

Run syncdb to create the remaining tables.

python manage.py syncdb

Starting the dev servers

If everything is in order, you should now be able to start the dev server and the celery demon and the python-smtpd loopback in separate terminals

python manage.py runserver
python manage.py celeryd -l info
python -m smtpd -n -c DebuggingServer localhost:1025

Point your browser to http://localhost:8000/ and register a new user, add api keys and add some pilots

eve-armada's People

Contributors

kriberg avatar

Stargazers

 avatar M Burns avatar  avatar

Watchers

 avatar James Cloos avatar

eve-armada's Issues

Number of requirements

'tis a lot of requirements to get this running. Does the requirements.txt need to be pruned to do a basic setup, or are ALL of those necessary?

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.