Hi, I want to make my own discourse plugins and what languages I need to know and what tools/programs/apps I need to do so. I appreciate it.
Ho appena iniziato, ma ecco il mio āprimo passoā per mettervi in marcia:
Leggi:
- queste
- queste
- Prova a leggere il codice dei plugin più semplici, ma popolari, e vedi se riesci a capire cosa fanno (non è sempre facile, soprattutto con la complessità di gestire più file e la talvolta brutale brevità funzionale di JavaScript, ma persisti)
Devi imparare:
- Molto JavaScript (non cercare oltre i video eccellenti e divertenti (!) di @mpj su Fun Fun Function (grazie amico!))
- Molto Ember e un poā di Ruby (Inizia qui)
- Github e Git
- (E ovviamente HTML/CSS!)
Installa:
- Atom e considera lāottima estensione nuclide che facilita la navigazione e modifica remota dellāalbero dei file
- Unāistanza di sviluppo di Discourse usando questa guida, preferibilmente su un server cloud economico, e probabilmente installa il plugin outlet locations per rendere le cose più visive.
I appreciate it! What ākindā of JavaScript, like web or node.js?
ECMAScript. Itās used in both āplacesā.
Would I just make a new atom file named plugin.js and work on a plugin there?
No. There are no ā.jsā files. JavaScript is mainly stored in ā.js.es6ā files. Ruby in ā.rbā files. Itās more complex. Take a look at existing plugins for example file arrangement and content. You need to understand serialisation, Ember templates, the Router and the Model, View, Controller concept.
I would highly recommend you install a simple existing plugin of your choice and try modify it in some sensible way.
Dont skip on the reading.
I think itās fair to say is a pretty steep learning curve because there are a lot of concepts to get to grips with, two languages, one framework and Discourseās āway of doing thingsā ā¦