Skip to content

weltenwort/madacra-py

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

20 Commits
 
 
 
 
 
 

Repository files navigation

Madacra

Setting up a development environment

  1. Clone this repository

  2. Install a mongodb server.

  3. Install nodejs.

  4. Install the lesscss and coffee-script compilers using npm:

    $ [sudo] npm install -g less coffee-script
    
  5. Create and activate a Python virtualenv for the project and install the dependcies in it using

    $ pip install -r <path-to-repository>/src/server/requirements.txt
    
  6. Inside <path-to-repository>/src/server/ start the watcher process that compiles assets when they are modified:

    $ python manage.py assets watch
    
  7. Inside <path-to-repository>/src/server/ start the server process with your desired configuration file (the path of which is relative to the instance folder):

    $ MADACRA_SERVER_SETTINGS=<settings-file> python manage.py runserver
    

Testing mode

When the server is configured for testing by setting the configuration key TESTING = True, it differs from non-testing mode in the following way:

  • The function madacraserver.testing.create_fixtures is called on app initialisation to populate the database with some dummy data.
  • Two additional routes are recognised:
    • /tests/e2e serves an AngularJS end-to-end test runner with all tests in static/tests/e2e/*.coffee
    • /tests/unit serves a jasmine unit test runner with all tests in static/tests/unit/*.coffee
  • A messaging.MessageDebugLogger is created, that logs all messages sent on the internal event bus

About

Madacra - an online virtual tabletop

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published