A tool for creating fantasy campaign settings, including maps, regions, flags, cities, NPCs, businesses, legends, lore and more.
Python JavaScript HTML Other
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
data
docs
fixtures
integration_tests
log added logging to everything Apr 17, 2014
megacosm
tests
.coveragerc Refactoring, added __str__ consistently. Mar 28, 2016
.gitignore
.travis.yml readding redis to travisci for integration testing Mar 31, 2016
.vimrc added new formatting, added vim-flake8 to vimrc Sep 5, 2014
LICENSE
README.md making url more generic Oct 4, 2014
config.py.example reworking name generation, updating datafiles. Mar 9, 2016
pylintrc fixing more pylint stuff Apr 1, 2016
reimport_data.py
requirements.txt
run.py
setup.cfg

README.md

Coverage Status Bitdeli Badge

Megacosm-Generator

A tool for creating fantasy campaign settings, including maps, regions, flags, cities, NPCs, businesses, legends, lore and more.

Set Up The Dev Environment

  • make sure you have python 2.7
  • make sure you have python's virtualenv installed
  • set up Redis or (have access to one, like redistogo).

On the first run, do the following:

    git clone https://github.com/CityGenerator/Megacosm-Generator.git

    # create a virtual env
    virtualenv env

    # activate the env
    source env/bin/activate

    # install the requirements
    pip install -r requirements.txt

    # copy the example config into place and configure it
    cp config.py.example config.py

    # Load your data
    python reimport_data.py

    # start the server
    python run.py
    # View the app in your browser at http://127.0.0.1:8000/

After that, you just need to use this:

    source env/bin/activate
    python run.py

To try your unit tests, run

    nosetests