How to set up a Node Project With Typescript

This page summarizes the projects mentioned and recommended in the original post on dev.to

Our great sponsors
  • Appwrite - The open-source backend cloud platform
  • Onboard AI - Learn any GitHub repo in 59 seconds
  • InfluxDB - Collect and Analyze Billions of Data Points in Real Time
  • TypeScript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

    Node.js is an open-source JavaScript runtime environment for building server(backend) applications. To add type checking something that is not present in plain JavaScript we use Typescript. Typescript makes our code more secure and robust. Mainly it will help us to reduce bugs in our code. Here i'll give you the step by step instructions to setup your next Node.js project with Typescript.

  • Nodemon.io

    Monitor for any changes in your node.js application and automatically restart the server - perfect for development

    Additionally i'm using nodemon which will help us by automatically restarting our server when we make changes to our files. For nodemon to work with typescript we need another dependency called ts-node. To install both run the below command.

  • Appwrite

    Appwrite - The open-source backend cloud platform. Add Auth, Databases, Functions, and Storage to your product and build any application at any scale while using your preferred coding languages and tools.

  • Express

    Fast, unopinionated, minimalist web framework for node.

    Now install express and it's type definitions with the below commands.

NOTE: The number of mentions on this list indicates mentions on common posts plus user suggested alternatives. Hence, a higher number means a more popular project.

Suggest a related project

Related posts