Skip to content

nirnejak/typescript-node-starter

Repository files navigation

Typescript Node Starter

Node.js and Fastify project starter using TypeScript

Note: Need to configure .env file to use local server


Additional Packages Used

  • colorette - for styling console output
  • date-fns - for date operations and formatting
  • heapdump - for getting dump of the current memory heap

Available Scripts

Install Dependencies

npm install

Setup Pre-commit

npm run prepare

Start Development Server

npm run develop

Build for Production

npm run build

Start Production Server

npm start

Docker Config

Build Image

docker build

Run Image

docker run -p 5000:5000 <image-id>

Development Setup

  • VS Code - Install the recommended extensions
  • Volta - For managing node versions

Guides


Next Steps