Want to use Typescript for Nodejs projects?
Here is the step-by-step to create an environment for NodeJs using the Typescript language.
- Clone the starter from my Github repository.
- 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