The final MVC internet framework you may ever want (secretGeek.web)

Once you’ve accomplished the whole lot you’ll be able to with Ruby On Rails….
Once you’ve reached the bounds of Haskell on a Horse…
If FubuMVC shouldn’t be for you…
It is time to meet the MVC internet framework to finish all MVC Internet frameworks.
DOS on DOPE is the fashionable MVC framework constructed on the superior energy of Batch scripts.
The entire controllers in DoD are batch recordsdata.
The entire views are batch recordsdata.
The mannequin relies on batch recordsdata. The helper capabilities are… you guessed it! Lovely batch recordsdata!
The whole supply code and tutorials can be found at github
With DosOnDope, it is this easy:
open a cmd window, and write:
dope web site Weblog
You simply constructed an internet site, known as ‘weblog’. Right here it’s:
Oops. It strikes too quick, I can not sustain.
Here is all of the folders which have been created for us…
C:tempblog>dir /s/a:d/b C:tempblogContent C:tempblogControllers C:tempblogh C:tempblogModels C:tempblogScripts C:tempblogViews C:tempblogControllersHome C:tempblogViewsShared
And all of the recordsdata…
C:tempblog>dir /s/a:-d/b C:tempblogDefault.aspx C:tempblogfavicon.ico C:tempblogGlobal.asax C:tempblogweb.config C:tempblogContentSite.css C:tempblogContentli.png C:tempblogContentLogo.png C:tempblogControllers_actionMissing.bat C:tempblogControllers_controllerMissing.bat C:tempblogControllersHomeIndex.bat C:tempblogha.bat C:tempbloghh1.bat C:tempbloghh2.bat C:tempbloghh3.bat C:tempbloghp.bat C:tempblogModelssplit.vbs C:tempblogViewsShared_header.bat
Let’s create a brand new controller motion, and see the way it appears.
Let’s enhance the look of that web page. You kind a bit of…
…hit refresh and see what modified.
It labored.
Discover the usage of html helper strategies like ‘p.bat
‘ and use of the partial, ‘_header.bat
‘ to offer styling and a title to the web page.
However web sites do not reside in a vacuum. We want some information to convey this factor to life.
In DoD we embrace the NoSQL motion and leap straight to the data-store of the long run: a CSV file.
C:temp>CD BlogModels C:tempBlogModels>copy con Posts.csv ID`Title`Article ^Z
Posts.csv is each the mannequin that describes our information, and the shop which is able to comprise the information itself.
Let’s generate actions for administering our Posts:
C:tempblogModels>dope gen Publish Producing actions for MODEL Publish in Controller Dwelling...
Examine in a browser…
The generator has created a pleasant web page for us, with a reputation and textbox for each discipline, so we will create new posts.
As soon as we have added just a few articles, let’s have a look at what the index appears like:
If we glance contained in the posts.csv file, we see the information:
C:tempblogModels>kind Posts.csv ID`Title`Article 1`Hi there Brazil!`Sure, sure, hiya certainly! 2`Let's add a second for good measure`Oh yeah
Ceaselessly Requested Questions
What about safety?
If you cannot belief public guests from the web, who are you able to belief? Executing consumer enter as instructions contained in the working system is probably the most direct solution to get issues accomplished, and that is what issues most.
Does it scale?
Thus far I have never run into any efficiency issues. Each time I’ve opened up a DoD web site to a number of customers, my exhausting drive tends to get wiped lengthy earlier than I uncover efficiency points.
Properly, that is about it. Supply code and tutorials accessible at github / dos on dope
A full-featured internet growth framework with the smallest doable idea rely.
Suggestions welcome.
My ebook “Choose Your First Product” is out there now.
It offers you 4 straightforward steps to seek out and validate a humble product concept.