.. raw:: html ========== Quickstart ========== Getting a demo up and running ============================= You can try out the latest version of Converse at `conversejs.org `_ for the overlayed version and `conversejs.org/fullscreen.html `_ for the full page version. If you want to host and serve Converse yourself, there are a few options available. Let your XMPP server serve Converse for you ------------------------------------------- If you run your own XMPP server, you might first want to check whether it has a plugin or module for hosting Converse. * `Openfire `_ has the `inverse `_ plugin. * `Prosody `_ has `mod_conversejs `_. * `ejabberd `_ has `mod_conversejs `_. Serving Converse yourself ------------------------- Alternative you can serve only Converse without requiring any particular XMPP server. To do so, you'll need to get the right files to host, for which you have four options. .. note:: Pro-tip, if you just want to quickly test things locally, you can run ``make serve`` inside a checkout of the Converse repo. Converse is then hosted at http://localhost:8000 Option 1: Use the content delivery network ****************************************** Converse has a `CDN `_, provided by `KeyCDN `_, which hosts its JavaScript and CSS files. The latest versions of these files are available at these URLs: * https://cdn.conversejs.org/dist/converse.min.js * https://cdn.conversejs.org/dist/converse.min.css If you are integrating Converse into an existing website or app, then we recommend that you load a specific version of Converse. Otherwise your website or app might break when a new backwards-incompatible version of Converse is released. To load a specific version of Converse you can put the version in the URL: * https://cdn.conversejs.org/10.1.4/dist/converse.min.js * https://cdn.conversejs.org/10.1.4/dist/converse.min.css You can include these two URLs inside the ** element of your website via the *script* and *link* tags: .. code-block:: html Option 2: Download the builds from Github ***************************************** The `Converse releases page on Github `_ has the release notes for every release as well as links to downloadable zip files containing all the files you need to host Converse yourself. Extract the zip file and include converse.min.js and converse.min.css files in the ** element of your page, similar as shown in option 1 above. Option 3: Building the files yourself ************************************* Instead of using the CDN, you can also create your own builds and host them yourself. Have a look at the :ref:`creating_builds` section on how to create your own builds. In short, you should be able to do it by running ``make dist`` inside a checkout of the `Converse repo `_. To build the files and also start an HTTP server, you can run ``make serve``. The distribution files will be added to the ``./dist`` folder inside the repo. Initializing Converse ===================== You'll need to initialize Converse with configuration settings relevant to your requirements. Take a look at the :ref:`configuration-settings` section for info on all the available settings. To quickly get started, you can put the following JavaScript code at the bottom of your page (after the closing ** element):: The `index.html `_ file inside the Converse repository serves as a nice, usable example. Fullscreen version ------------------ Converse also comes in a fullscreen version. A hosted version is available online at `conversejs.org/fullscreen `_. Originally this version was available as a separate build file, but as of version 4.0.0 and higher, the difference between the "overlay" and the "fullscreen" versions of converse.js is simply a matter of configuring the :ref:`view_mode`. For example:: Where to go from here? ====================== Have a look at the various :ref:`features ` that Converse provides, for some of them you might have to do more setup work, like configuring an XMPP server or webserver. You might want to implement some kind of persistent single-session solution for your website, where users authenticate once in your website and are then automatically logged in to the XMPP server as well. For more info on how this can be achieved, read: :ref:`session-support`. For end-to-end encryption via OMEMO, you'll need to load `libsignal-protocol.js `_ separately in your page. Take a look at the section on :ref:`libsignal ` and the :ref:`security considerations around OMEMO `. Perhaps you want to create your own custom build of Converse? Then head over to the :doc:`builds` section, or more generally the :doc:`development ` documentation. Do you want to know how to theme Converse? Then read the :doc:`theming ` documentation.