Example of an isomorphic mithril application architecture
People
Repo info
Activity
sabine
@sabine
This plus all the slides on continuation-local-storage describing similar scenarios as use-case make me feel reasonably confident that it works the way I thought.
David
@dlepaux
Hello Stephan ! I have a question for you, i don't understand why there is a request after loading the HTML in the second page.. This GET request is useless ! Why do that? Thank you
David
@dlepaux
For example, if i do a request to get some data, with this configuration, i do the request in the server side and after in the client side...
Stephan Hoyer
@StephanHoyer
Can you see the posts of grumpi here in the chat?
David
@dlepaux
On december?
Stephan Hoyer
@StephanHoyer
she build a solution for this problem
David
@dlepaux
oh nice
Stephan Hoyer
@StephanHoyer
jep
David
@dlepaux
thank you =)
Stephan Hoyer
@StephanHoyer
I think it's not scope of the example
I personally find that double request ok-ish
there are other places to optimize
David
@dlepaux
like what?
Stephan Hoyer
@StephanHoyer
depends on what you want to achieve
creating a small version of your app that just contains the code which is needed to render this very page e. G. is a pretty good optimization
and load the rest async when the app is running
Maybe remove the need for ajax for the first page-load altogether might be another
David
@dlepaux
yes absolutly, i work on a fork of your project to make an awesome starterkit, i will fix all bug that i can
Stephan Hoyer
@StephanHoyer
nice. It needs some love, you're absolutly right :)
David
@dlepaux
i will put your ideas in a todo list :p
Stephan Hoyer
@StephanHoyer
I was very busy lately
David
@dlepaux
thank you again Stephan i build something interesting i will tell you =)
Stephan Hoyer
@StephanHoyer
oh, thanks
David
@dlepaux
no problem ! i'm unemploy for now ! I profit
Stephan Hoyer
@StephanHoyer
I always understand it as a starting point for people never as a fw or pattern or whatever. It should be easy to understand for everyone who is interested
oh... do you need some work ;)
David
@dlepaux
maybe ^^ i love to work on this concept, i fyou have some idea or way to develop i'm very open to your suggests
(sorry for my english)
Stephan Hoyer
@StephanHoyer
Do you already have some exp with mithril?
David
@dlepaux
Not really i have started this week
but it's not a problem i'm very motivated
and it's not so so complicated
Stephan Hoyer
@StephanHoyer
Ok, than maybe try things out and get yourself comfortable... then PM me, if you need something to do. BTW: Where are you from?
David
@dlepaux
Yes ! =) thank you for your proposal ! I come from France, Lyon, and you ?
Stephan Hoyer
@StephanHoyer
Germany
Leipzig to be specific
South of Berlin
David
@dlepaux
Nice :) I love Berlin (birth of Techno music ahah) I will send you a PM if necessary! Have a nice day !
Stephan Hoyer
@StephanHoyer
happy mithril coding... it's super fun
David
@dlepaux
Hello @StephanHoyer ! I have a little question about your require('../../store') in a view. You don't specify client or server.. But how it work? How client side choose the client.js file? Because in the /store/index.js you require the server.js file..
Stephan Hoyer
@StephanHoyer
It's defined in the package.json
It's a browserify feature
David
@dlepaux
Oww yes thank you very much ! :)
dzcpy
@dzcpy
Hi all, is it still worth to stick to Mithril now?
preact seems to be a very good alternative
Stephan Hoyer
@StephanHoyer
In what regard it's better than Mirhril.js?
BTW mithril was just rebuild from scratch. Will be 3 times faster than 0.2 mithril.
Stephan Hoyer
@StephanHoyer
updated and simplified version just git published
now with m.request running server and client side, so no need for a store facade