kadirahq / mantra

Mantra - An Application Architecture for Meteor
https://kadirahq.github.io/mantra/
977 stars 51 forks source link

I made a site using Mantra spec on a non-Meteor site: Webpack front-end only #155

Closed tjmonsi closed 6 years ago

tjmonsi commented 8 years ago

You guys may want to check them out here: https://github.com/tjmonsi/chi2016-program

And the site is at chi2016.acm.org/program

fermuch commented 8 years ago

I'm glad to know mantra works perfectly without meteor. I just have one question: why are your routes so complex? I'm not familiar with qs, so I am sure I am missing something, but shouldnt most of that logic be inside actions?

tjmonsi commented 8 years ago

@fermuch Yeah, supposed to be page.js should be able to handle the routing capabilities of the app. But because the constraint was to deploy it along side a PHP system, I have to use query parameters (the ones after ? in the url) instead of /:params/:here

In other words, I couldn't come up with a way to just render index.html given any url (except for images) so that the page.js can handle it.

As for the logic, I only put actionable logic in actions folder. Aside from that, is there other ways to do it?

fermuch commented 8 years ago

We should also get a forum for this kind of talks. They're great, but they don't belong here.

arunoda commented 8 years ago

This is pretty kwl. I think we may need to rebrand this as an application architecture for React. And I'll power up a forum in coming days.