Skip to content

A boilerplate-node-typescript repo to quickly set up Node.js development with TypeScript, including basic configuration.

Notifications You must be signed in to change notification settings

d3xt3r9/boilerplate-node-typescript

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

🚀 Boilerplate Node.js TypeScript

A minimal setup for developing Node.js applications using TypeScript. This boilerplate includes basic configurations for TypeScript, environment variables, and automatic reloading during development.

Features

  • 🌟 TypeScript: Strongly typed JavaScript for safer code.
  • 🔄 Nodemon: Automatically restarts the server on file changes.
  • 🌱 dotenv: Loads environment variables from a .env file.
  • 📦 ES2022 Support: Utilizes modern JavaScript features.

Getting Started

Prerequisites

  • Node.js (v14 or later)
  • npm or yarn

Installation

  1. Clone the repository:
   git clone https://github.com/d3xt3r9/boilerplate-node-typescript.git
   cd boilerplate-node-typescript
  1. Install dependencies:
npm install

Configuration

  1. Create a .env file in the root directory and set your environment variables:
MESSAGE=Welcome to my Node.js + TypeScript setup!

Scripts

  • Development: Start the server with automatic reloading.
npm run dev
  • Build: Compile TypeScript to JavaScript.
npm run build
  • Start:Run the compiled JavaScript files.
npm start

About

A boilerplate-node-typescript repo to quickly set up Node.js development with TypeScript, including basic configuration.

Resources

Stars

Watchers

Forks