A tool for creating fantasy campaign settings, including maps, regions, flags, cities, NPCs, businesses, legends, lore and more.
Python JavaScript HTML Other
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
data
docs
fixtures
integration_tests
log
megacosm
tests
.coveragerc
.gitignore
.travis.yml
.vimrc
LICENSE
README.md
config.py.example
pylintrc
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