Want to use Typescript for Nodejs projects?

Here is the step-by-step to create an environment for NodeJs using the Typescript language.

  1. Clone the starter from my Github repository.
  2. Type npm install.

The project will run without transpiling in the development environment.

To start the development environment:

npm run dev

To run the server in production mode:

npm run prod

The production command will automatically create the build folder “dist” of JavaScript files in the project folder ready to deploy.


0 Comments

Leave a Reply

Avatar placeholder

Your email address will not be published. Required fields are marked *