pFad - Phone/Frame/Anonymizer/Declutterfier! Saves Data!


--- a PPN by Garber Painting Akron. With Image Size Reduction included!

URL: http://github.com/sezRR/nodejs-typescript-template

e66.css" /> GitHub - sezRR/nodejs-typescript-template: Modern Node.js + TypeScript template with ESM support, using tsx for fast development and bundler-style module resolution · GitHub
Skip to content

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Node.js with TypeScript Template

This repository serves as a modern template for setting up a Node.js project with TypeScript. It uses modern tooling including tsx for fast development with hot reload.

Getting Started

Prerequisites

Make sure you have Node.js and npm installed on your machine.

Installation

  1. Clone the repository:

    git clone https://github.com/sezRR/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 uses tsx in watch mode to automatically reload your application when files change. tsx is a modern, blazing-fast TypeScript execution engine built on esbuild.

Build

To build the TypeScript source code, use:

npm run build

This command compiles TypeScript files from the src/ directory to the dist/ directory.

Production

To run the built application in production, use:

npm run prod

This command executes the compiled index.js file from the dist/ 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 using modern bundler module resolution.
  • package.json: Project metadata and script definitions.

About

Modern Node.js + TypeScript template with ESM support, using tsx for fast development and bundler-style module resolution

Topics

Resources

Stars

Watchers

Forks

Releases

Packages

Used by

Contributors

Languages

pFad - Phonifier reborn

Pfad - The Proxy pFad © 2024 Your Company Name. All rights reserved.





Check this box to remove all script contents from the fetched content.



Check this box to remove all images from the fetched content.


Check this box to remove all CSS styles from the fetched content.


Check this box to keep images inefficiently compressed and original size.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy