Deno Web Development: Write, test, maintain and deploy JavaScript and TypeScript web applications using Deno
- Length: 267 pages
- Edition: 1
- Language: English
- Publisher: Packt Publishing
- Publication Date: 2021-04-09
- ISBN-10: 180020566X
- ISBN-13: 9781800205666
- Sales Rank: #316759 (See Top 100 Books)
Learn how to use Deno, the secure JavaScript and TypeScript runtime written in Rust, to write reliable web applications
Key Features
- Understand Deno’s essential concepts and features
- Learn how to use Deno in real-world scenarios
- Use Deno to develop, test and deploy web applications and tools
Book Description
Deno is a JavaScript/TypeScript runtime with secure defaults and a great developer experience.
“Deno Web Development” will introduce Deno’s primitives, its principles, and how developers can use them to build real-world applications. The book is divided into three main sections: introducing Deno, building an API from scratch, and testing and deploying a Deno application. The first chapters present the runtime and the motivations behind its creation. It explores some of the concepts introduced by Node, why many of them transitioned into Deno, and why new features were introduced. After getting comfortable with Deno and why it was created, the reader will start to experiment with Deno, exploring the toolchain, and writing simple scripts and CLI applications.
As we transition in the second section of the book, the reader will start with a very simple web application and will slowly add more features to it. This application will evolve from a simple “hello world” API to a web application connected to the database, with users, authentication, and a JavaScript client. In the meantime, topics like dependency management, configuration, testing, and application structure, among others will be addressed.
By the end of the read, the reader is comfortable in using Deno to create, maintain, and deploy secure and reliable web applications.
What you will learn
- Why should you use Deno?
- Tooling and the Deno ecosystem
- Leverage existing Node and EcmaScript6 knowledge in Deno
- Leverage the standard-library and Deno’s security model
- Explore common practices and web frameworks to build a REST API in Deno
- Implementing real-world functionalities in Deno
- Using dependency injection, inversion of control, and explore application architecture practices
- Test and deploy a Deno application in the cloud using Docker
Who This Book Is For
This book targets developers who want to leverage their JavaScript and TypeScript skills in a secure, simple, and modern runtime, using it for web development. Node.js knowledge is not required but recommended.
Table of Contents
- What is Deno
- The toolchain
- Runtime and standard-library
- Building your first web application
- Adding Users and Migrating to Oak
- Adding Authentication and Connecting to the Database
- HTTPS, extracting configuration, and Deno oin the browser
- Testing – Unit and Integration
- Deploying a Deno application
- Wrapping up