Here's a screenshot of the simple contact list view:
Solution Organization:
The C# project contains the following:
- A single Index.cshtml file.
- All images, CSS, and JavaScript.
- A "Templates" folder that contains 2 .htm files that hold the markup for each view. The templating feature of underscore.js is used to allow placeholders in the templates to be replaced with the desired data.
The heart of the client-side code is broken into 3 folders within the Scripts folder of the C# project:
- The "app" folder contains a main.js, a utility.js, and a file containing route definitions using Backbone.Router.
- The "models" folder contains the Backbone models and collections.
- The "views" folder contains Backbone views.
The F# project contains the following:
- ASP.NET MVC and Web API routes.
- Definitions of JS and CSS bundles.
- ASP.NET MVC and Web API Controllers.
- A Model class.
Getting the Code:
You can find the full source at https://github.com/dmohl/FsWebSpa-Backbone.
EDIT: You can find a C# version at https://github.com/downloads/dmohl/FsWebSpa-Backbone/SpaBackbone-CSharp.zip.
Do you have all C# version of this as well?
ReplyDeleteSure, you can download it from https://github.com/downloads/dmohl/FsWebSpa-Backbone/SpaBackbone-CSharp.zip
ReplyDeleteSorry, but I don't know C# or ASP.NET do you have a version in PHP or Ruby?
ReplyDeleteI don't currently have a PHP or Ruby version, but I'll look into putting one together for you.
ReplyDeletePHP would be awesome! Thanks :)
ReplyDeleteA PHP version can now be downloaded from https://github.com/downloads/dmohl/FsWebSpa-Backbone/Backbonejs-PHP.zip
ReplyDeleteThanks so much, I really appreciate this!
ReplyDeleteYou're the best \m/
ReplyDeleteThe Information which you provided is very much useful for Dot Net Training Learners Thank You for Sharing Valuable Information. I like this blog and this is very informative.
ReplyDeleteDot Net Course Chennai