Skip to content

Latest commit

 

History

History
63 lines (40 loc) · 1.11 KB

File metadata and controls

63 lines (40 loc) · 1.11 KB

Node.js TypeScript Express Starter

This repository provides a basic setup for a Node.js TypeScript project with Express.

Installation

Clone the repository or create a new directory:

git clone <repository_url>
cd project-directory

Initialize the project

npm init -y

Install necessary dependencies:

npm install express body-parser
npm install --save-dev nodemon @types/node

Initialize TypeScript configuration:

tsc --init

Usage

Start the TypeScript compiler in watch mode to automatically recompile files:

tsc -w

Run the project using nodemon for automatic server restarts:

npm start

Project Structure

  • src/ - Contains TypeScript source files.
  • dist/ - Compiled JavaScript files (generated automatically by TypeScript).
  • index.ts - Entry point of the application.

Configuration

  • tsconfig.json - TypeScript configuration file.

Contributing

Contributions are welcome! Feel free to open an issue or submit a pull request.

License

This project is licensed under the MIT License.