README.rst 5.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113
  1. ======
  2. Misago
  3. ======
  4. .. image:: https://travis-ci.org/rafalp/Misago.png?branch=master
  5. :target: https://travis-ci.org/rafalp/Misago
  6. .. image:: https://coveralls.io/repos/rafalp/Misago/badge.png?branch=master
  7. :target: https://coveralls.io/r/rafalp/Misago?branch=master
  8. **Development Status: Pre-Alpha**
  9. Misago aims to be complete, featured and modern forum solution that has no fear to say 'NO' to common and outdated opinions about how forum software should be made and what it should do.
  10. If you can run Python apps on your hosting and you are looking for modern solution using latest paradigms in web development, or you are Django developer and forum is going to be core component of your next project then Misago is option for you.
  11. * **Homepage:** http://misago-project.org/
  12. * **Documentation:** http://misago.readthedocs.org/en/latest/
  13. * **Code & BugTracker:** https://github.com/rafalp/Misago/
  14. Don't use this branch in production!
  15. ====================================
  16. This branch contains in-development code of next major Misago release, 0.6. **It's not feature-complete.** If you are looking at running "real" forum on Misago, please use latest 0.5 release instead.
  17. **There is no update path for pre-release 0.6 installations!** If you run your site off codebase pulled straight from git branch instead of release or pypi install, you'll won't be able to do smooth update via ``python manage.py migrate``.
  18. Development
  19. ===========
  20. To start Misago site locally, first setup and activate virtual environment for it and then fire following commands::
  21. python setup.py install
  22. misago-start.py testforum
  23. This will install Misago in your virtual environment and will make pre-configured Misago site for you named "testforum". It will also expose "requirements.txt" for you to use to install Misago dependencies::
  24. pip install -r requirements.txt
  25. Now cd to "testforum" and edit "settings.py" file in your editor of choice in order to set up basic settings like database connection, default timezone or interface language.
  26. Next, initialize database by using migrate commands provided by manage.py admin utility::
  27. cd testforum
  28. python manage.py migrate
  29. Then, call "createsuperuser" command to create super admin in database::
  30. python manage.py createsuperuser
  31. Finally start development server using "runserver" command::
  32. python manage.py runserver
  33. If nothing is wrong with your setup, Django developer server will start, enabling you to visit 127.0.0.1:8000 in your browser and see the (incomplete) forum index.
  34. Frontend
  35. --------
  36. With exception of Admin Panel, Misago frontend is powered by Mithril.js application backed by Django API. This application relies on custom Gulp.js-based toolkit for development. As of current, Misago's ``gulpfile.js`` defines following tasks:
  37. default - this task does production build of Misago's assets, concating and minifying javascripts, css and images, as well as moving them to misago/static directory
  38. watch - task does quick build for assets (concat assets into single files, compile less, deploy to misago/static but don't minify/optimize) as well as runs re-build when less/js changes
  39. test - runs QUnit tests suite for Misago's javascript
  40. To start work on custom frontend for Misago, fork and install it locally to have development forum setup. You can now develop custom theme by modifing assets in misago/frontend directory, however special care should be taken when changing source javascripts.
  41. Misago defines two templates that allow you to include custom html and js code before Misago's JavaScript app is ran:
  42. * **scripts.html** template is included before final ``<script>`` element, allowing you to include and/or init 3rd party libraries such as Google Analytics, Facebook SDK, etc ect.
  43. * **extra.js** template is included after ``misago`` javascript object is created, but before ``misago.init`` is called, allowing you to run custom code registering new services adding custom features or modifing existing ones.
  44. Bug reports, features and feedback
  45. ==================================
  46. If you have found bug, please report it on `issue tracker <https://github.com/rafalp/Misago/issues>`_.
  47. For feature or support requests as well as general feedback please use `official forum <http://misago-project.org>`_ instead. Your feedback means much to the project so please do share your thoughts!
  48. Contributing
  49. ============
  50. If you have corrected spelling, wrote new tests or fixed a bug, feel free to open pull request.
  51. Many issues are open for takers. If you've found one you feel you could take care of, please announce your intent in issue discussion before you start working. That way situations when more than one person works on solving same issue can be avoided.
  52. Authors
  53. =======
  54. **Rafał Pitoń**
  55. * http://rpiton.com
  56. * http://github.com/rafalp
  57. * https://twitter.com/RafalPiton
  58. Copyright and license
  59. =====================
  60. **Misago** - Copyright © 2014 `Rafał Pitoń <http://github.com/ralfp>`_
  61. This program comes with ABSOLUTELY NO WARRANTY.
  62. This is free software and you are welcome to modify and redistribute it under the conditions described in the license.
  63. For the complete license, refer to LICENSE.rst