A boilerplate project for building TypeScript applications with Node.js. It includes essential development tools like nodemon for hot-reloading, TypeScript for type-checking, ts-node for running TypeScript files directly without compilation, tsc-alias for creating module aliases, and tsconfig-paths for resolving paths configured in the tsconfig.json file.
To get started with this project, first clone the repository:
git clone https://github.com/shakizwastaken/node-typescript-starter.git
Then, navigate into the project directory and install the dependencies:
cd typescript-starter
npm install
npm run dev
Starts the development server using nodemon
npm start
Starts the production server using the compiled code
npm run start:dev
Starts the development server with TypeScript support
npm run build
Compiles the TypeScript code into JavaScript
npm run clear
Deletes the build directory and node_modules folder
npm run clear:build
Deletes the build directory
npm run tsc
Compiles the TypeScript code into JavaScript using the TypeScript compiler