IpProxyNeon Heya, can someone explain Flarum to me? How would I use it, what is the main purpose for it, how would I develop for it (preferably in Python), etc
nixpc It's a forum software. You can create your own forum with it. A forum is simply a place to discuss stuff, the theme of the forum is set by the owner of that forum but it can be about politics / games / ...
IpProxyNeon Thank! But is there a way for me to develop extensions for Flaurm in python? That's my main language so I'd be kinda lost without it
nixpc While I haven't developed any extensions for Flarum yet, I have looked into it. Flarum seems to have an API where you can create "extensions" with but if you want to create easily installable extensions you'll need to work with the tools they have provided you with. These "extensions" aren't actually extensions but just scripts that use Flarum API to act like them. If you want to make actual extensions check this out: https://flarum.org/docs/extend/
IpProxyNeon So it's just an API? Does it use Websockets or Webhooks or what? If you know please tell me 😛
tankerkiller125 Extensions are only developed in PHP and JS, generally speaking, you can use the HTTP API to do some task, however, you can only get the majority of features using the PHP/JS interfaces/APIs.
IpProxyNeon Damn ok, how about CoffeeScript? It's JavaScript with a simpler syntax (to some people) and I know some CoffeeScript, so it would be better for me if I can at least use CoffeeScript
tankerkiller125 IpProxyNeon If you can use webpack to compile your CoffeeScript down to JS then yes you could use it. So far I haven't seen any extensions do that but I don't see why it couldn't be done. Note that the JS side of things only handles the frontend. PHP is for anything backend wise.
IpProxyNeon So would I be able to use JavaScript instead of PHP for the backend? (I am able to compile my CoffeeScript to JavaScript but I was wondering if I can do it directly with CoffeeScript)
tankerkiller125 IpProxyNeon Flarum takes the compiled JS code and merges it with it's own for browser use, you can use CoffeScipt for development/programming but it must be in JS for the browser to understand it. As far as the backend it's entirely written in PHP. A decent example of an extension to take a look at (to get an idea of how extensions are created) would be https://github.com/flarum/likes
askvortsov If you're interested in developing flarum extensions, I would recommend that you view this as an opportunity to explore a new language and framework. It's fun, and also really rewarding to try completely new things!
IpProxyNeon Oh, thanks! I'm probably gonna try and learn PHP now, any heads up about the language is should take into consideration? Also, is there a place I can make a Flarum site for free?
askvortsov Freeflarum.com is a third party service, but they don't allow you to install extensions beyond their selection