README.rst 4.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110
  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 relies heavily on React.js components 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. * **build** 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** 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 Mocha.js 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 ``frontend`` directory, however special care should be taken when changing source javascripts.
  41. Misago defines template that allows you to include custom html and js code before Misago's JavaScript app is ran, named **scripts.html**.
  42. Bug reports, features and feedback
  43. ==================================
  44. If you have found bug, please report it on `issue tracker <https://github.com/rafalp/Misago/issues>`_.
  45. 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!
  46. Contributing
  47. ============
  48. If you have corrected spelling, wrote new tests or fixed a bug, feel free to open pull request.
  49. 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.
  50. Authors
  51. =======
  52. **Rafał Pitoń**
  53. * http://rpiton.com
  54. * http://github.com/rafalp
  55. * https://twitter.com/RafalPiton
  56. Copyright and license
  57. =====================
  58. **Misago** - Copyright © 2014 `Rafał Pitoń <http://github.com/ralfp>`_
  59. This program comes with ABSOLUTELY NO WARRANTY.
  60. This is free software and you are welcome to modify and redistribute it under the conditions described in the license.
  61. For the complete license, refer to LICENSE.rst