Log In
Or create an account ->
Imperial Library
Home
About
News
Upload
Forum
Help
Login/SignUp
Index
Building Web, Cloud, and Mobile Solutions with F#
Preface
Who This Book Is For
Getting Set Up to Run the Examples
How This Book Is Organized
Conventions Used in This Book
Using Code Examples
SafariĀ® Books Online
How to Contact Us
Acknowledgments
1. Building an ASP.NET MVC 4 Web Application with F#
The F# ASP.NET MVC 4 Project Templates
Finding and Installing the Templates
Exploring the C# Project
Dissecting the F# Project
Global.fs
HomeController.fs
F# Controllers and Models
Controllers
Models
Interacting with a Database
Entity Framework
Querying the Data
Querying with Type Providers
Taking Advantage of F#
Moving to a More Functional Approach
Understanding Pipelining and Partial Function Application
Making the Controller More Functional
Simplification with Pattern Matching
Related Advanced Topics and Concepts
Improving Responsiveness with Async Workflows
Caching with MailboxProcessor
Messages as a discriminated union type
The core agent
Using the new CacheAgent
Jumping on the Message Bus
SimpleBus
Publishing messages
Consuming messages
Continuation-Passing Style
Creating a Custom Computation Expression
Summary
2. Creating Web Services with F#
Installing the Existing WCF Project Template
Exploring the Output Code
Consuming the Service
Diving into Records
Building an ASP.NET Web API Service
Analyzing the Template
Interacting with the HTTP Service
Using HttpClient
The JSON type provider
Before we leave ASP.NET Web API
Exploring Other Web Frameworks
Service Stack
Nancy
Frank
Testing Your Creation
Getting Set Up
Improving Tests with F#
FsUnit
Unquote
NaturalSpec
Summary
3. To the Cloud! Taking Advantage of Azure
Building and Hosting F# on Azure
Creating an F# Worker Role
Introducing Fog
Interacting with Azure Storage Options
Blobs
Tables
Queue Storage
SQL Azure
Taking Advantage of the Azure Service Bus
Queues
Topics
Exploring Authentication and Authorization
Authentication and Authorization with ACS
Claims-based Authentication
Claims-based Authorization
Building for Scalability
Building the Web Role
Understanding the PlaceOrderCommand
On to the Worker Roles
Wrapping Up the SQL Azure Worker Role
Adding the Finishing Touches
Caching
CDN and Autoscaling
Shining F# Examples
{m}brace
Cloud Numerics
Framework for .NET Hadoop MapReduce
Summary
4. Constructing Scalable Web and Mobile Solutions
Scaling with Web Sockets
Building a Web Socket Example with .NET 4.5 and IIS 8
Creating a Web Socket Server with Fleck
Using SignalR
Building a Persistent Connection Example
A JavaScript Client
An F# Client
Constructing a Hub Example
The server side
The client side
Going Mobile
The jQuery Mobile Approach
Adding Windows Phone
Combining F# and NoSQL
MongoDB
RavenDB
CouchDB
Summary
5. Functional Frontend Development
Setting the Stage
Looking at LiveScript
Benefits
Usage
Example
Exploring Pit
Benefits
Usage
Example
Diving into WebSharper
Benefits
Usage
Example
Summary
A. Useful Tools and Libraries
FAKE (F# Make)
NuGet
Basic Usage
Useful NuGet Packages
ExpectThat
B. Useful Websites
fssnip.net
tryfsharp.org
Visual Studio Gallery
jQueryMobile.com
C. Client-Side Technologies That Go Well with F#
CoffeeScript
Sass
Underscore.js
Index
About the Author
Colophon
Copyright
← Prev
Back
Next →
← Prev
Back
Next →