Discourse is a modern and highly-customizable platform for building communities. This documentation is intended for anyone who wants to build a customization for Discourse, or work on Discourse itself.
Architecture
Discourse Core is has a Ruby on Rails backend and an Ember JS frontend. This is the shared platform upon which Discourse communities are built.
Discourse Themes can be used to customize the frontend user experience using CSS and Javascript. Each theme has its own git repository, and community admins can generally install and manage them via the Discourse admin panel, even on shared hosting platforms.
Theme Components are themes which are intended for use alongside other Theme Components, as part of an overall Theme. From a development point of view, Theme Components and Themes are almost identical.
Discourse Plugins can customize the frontend in similar ways to themes. They can also customize the backend Ruby on Rails application, which allows them to introduce more extensive features. Plugins can only be installed by the server administrator, so their use may be restricted on shared hosting platforms.
Getting Started
To work on Discourse Core, Themes or Plugins, you’ll need a community to develop against.
To develop Themes or Theme Components, you can use the discourse_theme CLI against our public ‘Theme Creator’, your own production site, or a dedicated development environment. Once you have a development environment, check out the Theme Beginners Guide.
To develop plugins or core, you’ll need to set up a dedicated development environment. Once that’s set up, check out the Plugin Beginners Guide.
For general information about developing Discourse core, Themes and Plugins, check out the Code Internals section.
This document is version controlled - suggest changes on github.