D Web Development

Leverage the power of D and the vibe.d framework to develop web applications that are incredibly fast

D Web Development

Kai Nacke

1 customer reviews
Leverage the power of D and the vibe.d framework to develop web applications that are incredibly fast
Mapt Subscription
FREE
$29.99/m after trial
eBook
$19.60
RRP $27.99
Save 29%
Print + eBook
$34.99
RRP $34.99
What do I get with a Mapt Pro subscription?
  • Unlimited access to all Packt’s 5,000+ eBooks and Videos
  • Early Access content, Progress Tracking, and Assessments
  • 1 Free eBook or Video to download and keep every month after trial
What do I get with an eBook?
  • Download this book in EPUB, PDF, MOBI formats
  • DRM FREE - read and interact with your content when you want, where you want, and how you want
  • Access this title in the Mapt reader
What do I get with Print & eBook?
  • Get a paperback copy of the book delivered to you
  • Download this book in EPUB, PDF, MOBI formats
  • DRM FREE - read and interact with your content when you want, where you want, and how you want
  • Access this title in the Mapt reader
What do I get with a Video?
  • Download this Video course in MP4 format
  • DRM FREE - read and interact with your content when you want, where you want, and how you want
  • Access this title in the Mapt reader
$0.00
$19.60
$34.99
$29.99p/m after trial
RRP $27.99
RRP $34.99
Subscription
eBook
Print + eBook
Start 30 Day Trial
Subscribe and access every Packt eBook & Video.
 
  • 5,000+ eBooks & Videos
  • 50+ New titles a month
  • 1 Free eBook/Video to keep every month
Start Free Trial
 
Preview in Mapt

Book Details

ISBN 139781785288890
Paperback196 pages

Book Description

D is a programming language with C-like syntax and static typing. The vibe.d framework builds on powerful D concepts like template meta-programming and compile-time function execution to provide an easy-to-use environment for web applications. The combination of a feature-rich web programming framework with a language compiling to native code solves two common issues in web development today: it accelerates your development and it results in fast, native web applications. Learning the vibe.d framework before you start your application will help you to choose the right features to reach your goal.

This book guides you through all aspects of web development with D and the vibe.d framework.

Covering the popular operating systems today, this guide starts with the setup of your development system. From the first Hello World-style application you will move on to building static web pages with templates. The concise treatment of web forms will give you all the details about form handling and web security. Using the abstractions of the web framework you will learn how to easily validate user input. Next, you will add database access to your application, providing persistent storage for your data. Building on this foundation, you will expose your component and integrate other components via REST. Learning about the internals of vibe.d you will be able to use low-level techniques such as raw TCP access. The vibe.d concepts can also be used for GUI clients, which is the next topic that you will learn. vibe.d is supported by an active community, which adds new functionality. This comprehensive guide concludes with an overview of the most useful vibe.d extensions and where to find them. It also shows you how to integrate these extensions in your application.

The concepts are always illustrated with source code, giving you an insight into how to apply them in your application.

Table of Contents

Chapter 1: Getting Started with Your First Web Application
Installing the D compiler and the DUB package manager
Creating your first web application
Summary
Chapter 2: Using Templates for Your Web Pages
Benefits of using templates
Creating your first template
Solving common tasks
Summary
Chapter 3: Get Interactive – Forms and Flow Control
Introducing the note application
Creating a template with a simple form
A closer look at route matching
Serving static files
Storing session data
Authenticating the user
Displaying an error page
Uploading files
Summary
Chapter 4: Easy Forms with the Web Framework
Taking advantage of unique D features
Converting the note application
Validating user input
Adding authentication
Localizing the web content
Summary
Chapter 5: Accessing a Database
Choosing the right database technology
Using the Redis key-value store
Using the MongoDB document database
Using the MySQL relational database
Summary
Chapter 6: Using the REST Interface
Defining the principles of the World Wide Web
Serializing D to JSON and back
Creating and using a REST service
Tailoring the generated REST API
Accessing CouchDB
Summary
Chapter 7: The vibe.d Internals
The programming model of vibe.d
Coding your own main function
Performing background work
Porting an existing driver
An alternative solution for the existing drivers
Summary
Chapter 8: Using vibe.d with a GUI Client
The GUI event loop and vibe.d
Creating a Win32 GUI application
Creating an X11 GUI application
Integrating with other GUI toolkits
Summary
Chapter 9: Power Your Application with vibe.d Extensions
Publishing your project in the DUB registry
Useful community projects
Summary

What You Will Learn

  • Create amazingly fast web applications with D
  • Use Diet templates to easily create a web user interface
  • Utilize the web framework for interactive applications with input validation and internationalization
  • Access a database to provide persistent storage for your application
  • Extend your application with a REST interface and access other applications via REST
  • Understand vibe.d’s fiber-based approach to asynchronous I/O and use it for integration of existing components
  • Create GUI applications with vibe.d

Authors

Table of Contents

Chapter 1: Getting Started with Your First Web Application
Installing the D compiler and the DUB package manager
Creating your first web application
Summary
Chapter 2: Using Templates for Your Web Pages
Benefits of using templates
Creating your first template
Solving common tasks
Summary
Chapter 3: Get Interactive – Forms and Flow Control
Introducing the note application
Creating a template with a simple form
A closer look at route matching
Serving static files
Storing session data
Authenticating the user
Displaying an error page
Uploading files
Summary
Chapter 4: Easy Forms with the Web Framework
Taking advantage of unique D features
Converting the note application
Validating user input
Adding authentication
Localizing the web content
Summary
Chapter 5: Accessing a Database
Choosing the right database technology
Using the Redis key-value store
Using the MongoDB document database
Using the MySQL relational database
Summary
Chapter 6: Using the REST Interface
Defining the principles of the World Wide Web
Serializing D to JSON and back
Creating and using a REST service
Tailoring the generated REST API
Accessing CouchDB
Summary
Chapter 7: The vibe.d Internals
The programming model of vibe.d
Coding your own main function
Performing background work
Porting an existing driver
An alternative solution for the existing drivers
Summary
Chapter 8: Using vibe.d with a GUI Client
The GUI event loop and vibe.d
Creating a Win32 GUI application
Creating an X11 GUI application
Integrating with other GUI toolkits
Summary
Chapter 9: Power Your Application with vibe.d Extensions
Publishing your project in the DUB registry
Useful community projects
Summary

Book Details

ISBN 139781785288890
Paperback196 pages
Read More
From 1 reviews

Read More Reviews

Recommended for You

Learning D Book Cover
Learning D
$ 39.99
$ 28.00
D Cookbook Book Cover
D Cookbook
$ 29.99
$ 21.00
Oracle 10g/11g Data and Database Management Utilities Book Cover
Oracle 10g/11g Data and Database Management Utilities
$ 29.99
$ 21.00
Oracle Database XE 11gR2 Jump Start Guide Book Cover
Oracle Database XE 11gR2 Jump Start Guide
$ 17.99
$ 12.60
OCA Oracle Database 11g: Database Administration I: A Real-World Certification Guide Book Cover
OCA Oracle Database 11g: Database Administration I: A Real-World Certification Guide
$ 35.99
$ 25.20
Advanced Oracle PL/SQL Developer's Guide - Second Edition Book Cover
Advanced Oracle PL/SQL Developer's Guide - Second Edition
$ 47.99
$ 33.60