DEV Community

Cover image for TypeScript for Node.js Developers
Jeremy Likness ⚡️
Jeremy Likness ⚡️

Posted on

38 13

TypeScript for Node.js Developers

A few years ago, I presented a session intended to help Node.js developers better understand the benefits of enhancing their JavaScript code by embracing TypeScript. I was fortunate to have David Neal in the audience. He is a talented artist and created this sketch that summarizes the talk.

The full presentation and repository are available on GitHub:

GitHub logo JeremyLikness / typescript-for-node

Presentation materials for Connect.Tech 2017. Covers building Node.js apps with TypeScript.

TypeScript for Node.js Develpment

This project contains the presentation and sample code for my "TypeScript for Node.js" session at Connect.Tech.

To get full details, including a related video walk through and description of the presentation, read the TypeScript for Node.js blog post.

Run the Presentation or view it as a PDF.

Examples

The Examples folder contains a simple project to illustrate various TypeScript features. The examples are best viewed from an IDE like Visual Studio Code for development-time feedback. You can:

npm run-script tsc builds JavaScript files from the examples.

node 001-types runs the first example.

npm run-script tsc:w builds and watches, useful for commenting/uncommenting code to walk through the example.

npm run-script tsc:es6 builds for ECMAScript 2015 to illustrate differences in output despite the same TypeScript source.

TypeScriptProject

This is a very simple project to show basic setup for Node.js development.

npm run-script build to build it.

I recorded a short video to illustrate these concepts. In less than ten minutes, I demonstrate how to build a Node.js app that uses TypeScript from scratch. Check it out and let me know your thoughts!

Enjoy!

JeremyLikness

SurveyJS custom survey software

Build Your Own Forms without Manual Coding

SurveyJS UI libraries let you build a JSON-based form management system that integrates with any backend, giving you full control over your data with no user limits. Includes support for custom question types, skip logic, an integrated CSS editor, PDF export, real-time analytics, and more.

Learn more

Top comments (1)

Collapse
 
kp profile image
KP

Typescript is awesome. Thanks for the post!

nextjs tutorial video

Youtube Tutorial Series 📺

So you built a Next.js app, but you need a clear view of the entire operation flow to be able to identify performance bottlenecks before you launch. But how do you get started? Get the essentials on tracing for Next.js from @nikolovlazar in this video series 👀

Watch the Youtube series