PageRenderTime 26ms CodeModel.GetById 26ms RepoModel.GetById 0ms app.codeStats 0ms

/demisauce/README.rst

https://github.com/araddon/demisauce
ReStructuredText | 67 lines | 40 code | 27 blank | 0 comment | 0 complexity | 3614ced4d2b315c111c70d844eb2bca0 MD5 | raw file
  1. Demisauce Web is the web application that hosts web services for use by
  2. other applications. The library applications for consuming these web
  3. services are in other projects, depending on which technology you need.
  4. Installation and Setup
  5. ======================
  6. Install `Demisauce <http://github.com/araddon/demisauce/tree/master/install>`_ as an appliance, need VMware, KVM, etc.
  7. Powered By `Tornado <http://www.tornadoweb.org>`_, MySql, `Gearman <http://www.gearman.org>`_, `Redis <http://www.tornadoweb.org>`_
  8. Make a config file as follows::
  9. paster make-config demisauce development.ini
  10. Tweak the config file as appropriate for your database and settings.
  11. Also, you can run command line tool to update admin email/pwd and host url::
  12. paster setup-app development.ini
  13. paster updatesite -p yourpwd -e sysadmin@demisauce.org -s http://yoursite.com -i development.ini
  14. the paster "setup-app" will output a "site key" (an api key to update into your
  15. ini setting). It will also give you your username, password::
  16. paster serve --reload development.ini
  17. Development
  18. ======================
  19. After making changes to the model, if you are using SQLAlchemy to
  20. create db, you can write changes to db using: (runs websetup.py setup_config())::
  21. paster setup-app development.ini
  22. To delete table's, and reload the fixture one table (or set of
  23. related tables such as poll's).
  24. Default ini is library_test.ini::
  25. paster dataload -c person -i development.ini
  26. OR
  27. paster dataload -c site
  28. TESTING
  29. ======================
  30. Use's nosetest, see full `nosetest documentation<http://www.somethingaboutorange.com/mrl/projects/nose/>`_
  31. To run tests::
  32. nosetests -s
  33. run just one file worth of tests::
  34. nosetests -s test_loads.py
  35. gets all folders which may have doctest, not just tests::
  36. nosetests -w ../ --with-doctest -v
  37. includes test folder for doctests::
  38. nosetests --with-doctest --doctest-tests
  39. OR
  40. python setup.py test