Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

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.

NotificationsYou must be signed in to change notification settings

sezRR/nodejs-typescript-template

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

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.

Getting Started

Prerequisites

Make sure you haveNode.js andnpm installed on your machine.

Installation

  1. Clone the repository:

    git clone https://github.com/your-username/nodejs-typescript-template.git
  2. Navigate to the project directory:

    cd nodejs-typescript-template
  3. Install dependencies:

    npm install

Usage

Development

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.

Build

To build the TypeScript source code, use:

npm run build

This command compiles TypeScript files from thesrc/ directory to thedist/ directory.

Production

To run the built application in production, use:

npm run prod

This command executes the compiledindex.js file from thedist/ directory.

Project Structure

  • 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.

Configuration Files

  • 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

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

[8]ページ先頭

©2009-2025 Movatter.jp