Covering the reasons why Deno was created, what new features and improvements it brings over Node.js, and some basic code samples.
● What problems is it trying to solve?
● A quick overview of what’s new
○ TypeScript as first-class citizen
○ Security
○ Top-level await
○ Extended and improved standard library
○ No more npm
● Trying Deno
○ Online playgrounds
○ Installing Deno on your computer
Chapter 2: Typescript You Need to Know
The chapter will cover the basic concepts of TypeScript to make sure the reader understands the basics for the code samples that will follow.
Chapter 3: Living a secure life
A more in-depth chapter covering everything about the new security layer and code examples to showcase the feature.
● Understanding how to set permissions & default behavior
● Code examples
Chapter 4: No more NPM
A detailed chapter covering how Deno intends to handle modules including several code examples showcasing the different features.
● Importing external modules
● Handling versions
● Importing once, requiring many times
● What happened to package.json?
● What if the external resource is removed?
● Potential pitfalls
Chapter 5: Existing Modules
Review of the standard library and some already existing ports from Node.js that can be used with Deno. All covered modules will have at least one code sample associated with them.
● The standard library, what is it and how can we use it?
● Ported modules from Node
Chapter 6: Putting it all Together-Sample Apps
The final chapter will cover a few practical projects to showcase how different types of applications can look like using Deno and how to structure them.
● Building an API with Deno and Mongo
● Building a chat server with Deno
● Building a command line tool with Deno
Fernando Doglio has been a part of the Software Development industry for the past 16 years. He’s worked on countless web projects, which include (amongst other things) APIs, Web Services, SPA, Node.js applications, PHP, Ruby, and a lot of JavaScript/HTML/CSS. He was there when SOAP hit the web and it was all the rage and he was also there when XML was the magic X on AJAX. He’s worked with Node.js for several years now and he’s written several books and countless articles about it, covering everything from the art of designing REST APIs with it to understanding the best design patterns and how they can be implemented with it. Now, working as a Technical Manager, he’s an eager evangelist of using JavaScript for backend development given how flexible and powerful this language is. You can find him on Twitter @deleteman123.
Learn everything there is to know about the new secure runtime for JavaScript: Deno. A proposed replacement for Node.js envisioned and created by the same developer who wrote the first version of Node, Deno is a simple, modern and secure runtime for JavaScript and TypeScript that uses V8 and is built in Rust. This book will cover everything from its inception to the currently available version.
You’ll see how to take advantage of the security layer in order to avoid unwanted security holes, and how to use TypeScript to develop your applications without having to manually set up a build process. You'll also learn how to create and use modules without having to depend on a package manager, and much more. Armed with these newly learned concepts, by the time you finish this book, you’ll be ready to build and test your own Deno applications.
Whether you’re a brand new developer to the back end with a JavaScript background or a seasoned Node.js developer looking to understand this competing technology, Introducing Deno will put you on the right path.
You will:
Learn why Deno was created and why it is different from Node
Build real applications using Deno and related technologies