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

JavaScript UI Libraries for Surveys and Forms

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

Learn more

Top comments (1)

Collapse
 
kp profile image
KP

Typescript is awesome. Thanks for the post!

Sentry image

Hands-on debugging session: instrument, monitor, and fix

Join Lazar for a hands-on session where you’ll build it, break it, debug it, and fix it. You’ll set up Sentry, track errors, use Session Replay and Tracing, and leverage some good ol’ AI to find and fix issues fast.

RSVP here →