Discussion:
[Trac-dev] Writing a new Trac JSON-RPC frontend in JS - framework recommendations?
Leho Kraav
2015-05-26 22:58:04 UTC
Permalink
I'm thinking of experimenting a bit. Trac's UI implementation as it is,
is just too slow compared to instant messengers, so that's people defer
to. It needs to respond quick and update dynamically. Writing new
backend code from scratch is way too much work, so JSON-RPC based
frontend seems like a good way to test ideas quickly. Feature-parity is
not at all the goal here, but rather the ability to try out fresh
concepts quickly and be able to do some real work on it as a bonus.

Ember.js seems like an interesting choice to try first, but what would
you guys recommend?
--
You received this message because you are subscribed to the Google Groups "Trac Development" group.
To unsubscribe from this group and stop receiving emails from it, send an email to trac-dev+***@googlegroups.com.
To post to this group, send email to trac-***@googlegroups.com.
Visit this group at http://groups.google.com/group/trac-dev.
For more options, visit https://groups.google.com/d/optout.
Simon Cross
2015-05-26 23:12:28 UTC
Permalink
Sounds like an awesome idea, but I would just use a RESTful HTTP API
that returns JSON and not JSON-RPC (which I've personally found to be
rather clunky).
--
You received this message because you are subscribed to the Google Groups "Trac Development" group.
To unsubscribe from this group and stop receiving emails from it, send an email to trac-dev+***@googlegroups.com.
To post to this group, send email to trac-***@googlegroups.com.
Visit this group at http://groups.google.com/group/trac-dev.
For more options, visit https://groups.google.com/d/optout.
Leho Kraav
2015-05-27 04:47:39 UTC
Permalink
Post by Simon Cross
Sounds like an awesome idea, but I would just use a RESTful HTTP API
that returns JSON and not JSON-RPC (which I've personally found to be
rather clunky).
But Trac doesn't have such a thing built in, does it?
--
You received this message because you are subscribed to the Google Groups "Trac Development" group.
To unsubscribe from this group and stop receiving emails from it, send an email to trac-dev+***@googlegroups.com.
To post to this group, send email to trac-***@googlegroups.com.
Visit this group at http://groups.google.com/group/trac-dev.
For more options, visit https://groups.google.com/d/optout.
Olemis Lang
2015-05-27 14:48:12 UTC
Permalink
Post by Leho Kraav
Post by Simon Cross
Sounds like an awesome idea, but I would just use a RESTful HTTP API
that returns JSON and not JSON-RPC (which I've personally found to be
rather clunky).
But Trac doesn't have such a thing built in, does it?
[...]

afaict , no , that's why I've been trying to develop RestOnTrac plugin
[1]_ , but atm it's not even close to been released . Do you think
there is enough interest to launch a dev season on this front ? I'd
love to work on that plugin (as well as others [2]_) and polish its
rough edges until it will be definitely released , should I find the
conditions to spend some time working on this .

.. [1] https://trac-hacks.org/wiki/RestOnTracPlugin

.. [2] https://trac-hacks.org/wiki/olemis
--
Regards,

Olemis - @olemislc

Apache™ Bloodhound contributor
http://issues.apache.org/bloodhound
http://blood-hound.net

Blog ES: http://simelo-es.blogspot.com/
Blog EN: http://simelo-en.blogspot.com/

Featured article:
--
You received this message because you are subscribed to the Google Groups "Trac Development" group.
To unsubscribe from this group and stop receiving emails from it, send an email to trac-dev+***@googlegroups.com.
To post to this group, send email to trac-***@googlegroups.com.
Visit this group at http://groups.google.com/group/trac-dev.
For more options, visit https://groups.google.com/d/optout.
Olemis Lang
2015-05-27 01:13:08 UTC
Permalink
Hi Leho !
Post by Leho Kraav
I'm thinking of experimenting a bit. Trac's UI implementation as it is,
is just too slow compared to instant messengers, so that's people defer
to. It needs to respond quick and update dynamically. Writing new
backend code from scratch is way too much work, so JSON-RPC based
frontend seems like a good way to test ideas quickly. Feature-parity is
not at all the goal here, but rather the ability to try out fresh
concepts quickly and be able to do some real work on it as a bonus.
Ember.js seems like an interesting choice to try first, but what would
you guys recommend?
If I were you I'd use the tiniest js framework supporting the RPC
protocol of your choice . For the frontend I'd recommend either
Reactive.js (should you prefer UI components) , knockout.js (MVVM , I
consider it kind of lightweight ...) or Angular JS (for those
fascinated with Google, I'm not very fond of it though) . There are a
number of other frameworks I could suggest depending on the specifics
, but with only these few details the list would be very long .

... but the best one amongst'em all is the one you feel productive and
comfortable with .
--
Regards,

Olemis - @olemislc

Apache™ Bloodhound contributor
http://issues.apache.org/bloodhound
http://blood-hound.net

Blog ES: http://simelo-es.blogspot.com/
Blog EN: http://simelo-en.blogspot.com/

Featured article:
--
You received this message because you are subscribed to the Google Groups "Trac Development" group.
To unsubscribe from this group and stop receiving emails from it, send an email to trac-dev+***@googlegroups.com.
To post to this group, send email to trac-***@googlegroups.com.
Visit this group at http://groups.google.com/group/trac-dev.
For more options, visit https://groups.google.com/d/optout.
Loading...