Is it possible to route with a domain besides localhost? If I have an html page hosted online or a YAP application, could a mojito app be routed to run when one of those pages are accessed. I recognize the port would need to be 80. But, how do you change the domain from localhost or is mojito inable to do something as such?
This is more on the realm of express. Mojito uses express under the hood (which in its current form is sort of hidden, but that will change soon). You can add a custom express middleware to analyze the request, and adjust anything that need to be adjusted before mojito dispatch engine kicks in.
a made a repository for my mojito projects. The first being hconts2.
The link to my repository
in the app level application. json I figure the appport should be 80 instead of the 8888 and other user available values, since the application is trying to read from a different domain than localhost?
Nothing happens when i start it?
I did mojito test app . and didnt get any errors?
this is the controller.server
i figure if the domain is different shouldnt the port be different as well. if I have a yahoo yap or yahoo group and i want some action to occur when i visit that site from the mojito app, wouldnt i need the app port to be 80, for http?
I stated i ran the test app function, to tell that i checked my code first to see if it had issues.
I can change the app port value to 8666 and it wouldnt matter?
can you look at my middleware file in my github repository and see what i am doing faulty?
and thanks for the variable help:)
I am going to crack this mojito egg if it is the last thing i do:)
fair enough, at least I learned something about middleware. what about sockets? Does Mojito allow for sockets? As an npm, the net npm should be usable for a mojito app, but am I wrong?
Second, is there an example of a simple game, using mojito. Some YUI modules would be needed but I figured you may know of a simple game example, I would like to study it.