rsarxiv / Misago

Misago is fully featured forum application written in Python and ES6, powered by Django and React.js

Home Page:http://misago-project.org

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Misago

Tests Result Code Coverage Development Chat

Development Status: Pre-Alpha

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.

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.

Don't use this branch in production!

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.

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.

Development

To start Misago site locally, first setup and activate virtual environment for it and then fire following commands:

python setup.py install
misago-start.py testforum

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:

pip install -r requirements.txt

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.

Next, initialize database by using migrate commands provided by manage.py admin utility:

cd testforum
python manage.py migrate

Then, call "createsuperuser" command to create super admin in database:

python manage.py createsuperuser

Finally start development server using "runserver" command:

python manage.py runserver

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.

Frontend

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:

  • build does production build of Misago's assets, concating and minifying javascripts, css and images, as well as moving them to misago/static directory
  • 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
  • watchstyle does quick build of less files, and re-builds them when they change
  • test runs Mocha.js tests suite for Misago's javascript

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.

Misago defines template that allows you to include custom html and js code before Misago's JavaScript app is ran, named scripts.html.

Bug reports, features and feedback

If you have found bug, please report it on issue tracker.

For feature or support requests as well as general feedback please use official forum instead. Your feedback means much to the project so please do share your thoughts!

There's also Gitter for those looking for intant-messaging approach for discussing Misago development.

Contributing

If you have corrected spelling, wrote new tests or fixed a bug, feel free to open pull request.

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.

Authors

Rafał Pitoń

Copyright and license

Misago - Copyright © 2016 Rafał Pitoń This program comes with ABSOLUTELY NO WARRANTY.

This is free software and you are welcome to modify and redistribute it under the conditions described in the license. For the complete license, refer to LICENSE.rst

About

Misago is fully featured forum application written in Python and ES6, powered by Django and React.js

http://misago-project.org

License:GNU General Public License v2.0


Languages

Language:Python 48.0%Language:JavaScript 37.6%Language:CSS 8.2%Language:HTML 6.1%Language:Shell 0.0%