- Notifications
You must be signed in to change notification settings - Fork1
A minimalistic and easy-to-use template for jumpstarting Node.js projects with TypeScript. Enjoy the benefits of TypeScript's static typing, automatic code reloading during development using nodemon, and a straightforward build process. Use this template as a foundation to accelerate your Node.js development with TypeScript.
sezRR/nodejs-typescript-template
Folders and files
| Name | Name | Last commit message | Last commit date | |
|---|---|---|---|---|
Repository files navigation
This repository serves as a template for setting up a Node.js project with TypeScript. It includes configuration files fortsconfig.json,package.json, andnodemon.json to help users get started quickly.
Make sure you haveNode.js andnpm installed on your machine.
Clone the repository:
git clone https://github.com/your-username/nodejs-typescript-template.git
Navigate to the project directory:
cd nodejs-typescript-templateInstall dependencies:
npm install
To run the project in development mode with automatic code reloading, use:
npm run dev
This command usesnodemon to watch for changes in thesrc/ directory and restarts the server accordingly.
To build the TypeScript source code, use:
npm run build
This command compiles TypeScript files from thesrc/ directory to thedist/ directory.
To run the built application in production, use:
npm run prod
This command executes the compiledindex.js file from thedist/ directory.
src/: Contains the source code of the application.index.ts: Main entry point of the application.helloWorld.ts: Example module demonstrating TypeScript functionality.
dist/: Output directory where the compiled JavaScript files are stored.
tsconfig.json: TypeScript compiler configuration.package.json: Project metadata and script definitions.nodemon.json: Nodemon configuration for development.
About
A minimalistic and easy-to-use template for jumpstarting Node.js projects with TypeScript. Enjoy the benefits of TypeScript's static typing, automatic code reloading during development using nodemon, and a straightforward build process. Use this template as a foundation to accelerate your Node.js development with TypeScript.
Topics
Resources
Uh oh!
There was an error while loading.Please reload this page.
Stars
Watchers
Forks
Releases
Packages0
Uh oh!
There was an error while loading.Please reload this page.