Jump to ratings and reviews
Rate this book

Quick Start to using Typescript and TypeORM on Node.js for CLI and web applications

Rate this book
Cut to the chase and quickly learn how to use TypeScript and TypeORM in Node.js applications. TypeScript offers a big win to JavaScript programmers developing larger applications. The larger the code base the more important it becomes, in theory, to use static typing and static code analysis techniques to catch certain classes of bugs at compile time.Long gone are the days when JavaScript was just for snippets on web pages. Today it is used for developing ever larger applications, including Enterprise-scale applications, with large code bases involving dozens or more programmers.What makes TypeScript compelling is it preserves the best parts of JavaScript while adding enough static type checking to help catch your bugs more quickly. With most IDE's you'll be notified of issues while typing the code.This book will quickly get you up to speed with using TypeScript to develop Node.js packages and applications (CLI and web).Quickly familiarize yourself with both TypeScript and TypeORM in Node.js application developmentExplore developing a Node.js package using TypeScript, then later using it in an Express based web applicationDevelop a basic database driven web application, with an advanced ORM layer.Explore how TypeScript helps the developer write better code.Explore creating TypeORM entities, and all four types of entity relationships in TypeORMExplore using decorators to add validation to TypeORM entitiesUse decorators for Express route handlers, and to develop custom Express middlewareGenerate TypeScript type declaration files for regular JavaScript projectsConvert Node.js/JavaScript projects to TypeScriptThe stack used in the example application Node.js 12.xExpress, with Bootstrap v5 for the UITypeScript 4.5 and TypeORM 0.2.xSQLite3 is used for the database, for simplicity, but TypeORM makes it easy to use many SQL databases and MongoDBTable of ContentsIntroduction to TypeScriptWhat is TypeScript? Why is TypeScript so interesting?Popularity of TypeScript, JavaScript, Node.js, etcWhat's in this book?Quick StartSet up Typescript compiler and editing environmentImplementing NodeJS packages using TypeScriptSetting up TypeORM, defining the main interfaceCreating TypeORM Entity classes, and CRUD methodsLetting students register for classes, exploring TypeORM relationshipsUnit Tests for a TypeScript-based CommonJS moduleValidation for values stored with TypeORM EntitiesBuilding command-line tools (CLI) using TypeScript and OCLIFManaging students with the Registrar CLI toolManaging classes with the Registrar CLI toolImproving the user experience with the cli-ux packageConfiguring Registrar/TypeORM for different databasesUsing Typescript in an Express applicationSetting up the Express server using TypeScriptCreating the initial Nunjucks templates for an Express applicationInterfacing with back end data storageRegistrar App User interface - CRUD screens, templates, etcAdvanced topics in TypeScript on Node.

445 pages, Kindle Edition

Published May 23, 2019

16 people are currently reading
7 people want to read

About the author

David Herron

21 books3 followers

Ratings & Reviews

What do you think?
Rate this book

Friends & Following

Create a free account to discover what your friends think of this book!

Community Reviews

5 stars
0 (0%)
4 stars
2 (100%)
3 stars
0 (0%)
2 stars
0 (0%)
1 star
0 (0%)
No one has reviewed this book yet.

Can't find what you're looking for?

Get help and learn more about the design.