FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

matschik/fastify-typescript-starter: ๐Ÿš€ Fastify & TypeScript starter repository ยท GitHub

Latest commit

ย 

History

1,346 Commits

Folders and files

NameName
Last commit message
Last commit date
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 

Repository files navigation

Fastify & TypeScript Starter

A simple starter template for building APIs with Fastify and TypeScript using Node.js 24+.

Requirements

  • Node.js 24.0.0 or higher
  • npm

Installation

git clone https://github.com/Matschik/fastify-typescript-starter.git
cd fastify-typescript-starter
npm install

Usage

Development

Start the development server with hot reload:

npm run dev

The server will automatically restart when you change files.

Production

Start the production server:

npm run start

Other Commands

npm run typecheck  # Check for TypeScript errors
npm run format     # Format code with Prettier

Project Structure

src/
  โ”œโ”€โ”€ index.ts              # Entry point
  โ”œโ”€โ”€ app.ts                # Fastify app setup
  โ”œโ”€โ”€ router.ts             # Route registration
  โ””โ”€โ”€ controller/           # Route handlers
      โ”œโ”€โ”€ indexController.ts
      โ””โ”€โ”€ userController.ts

Getting Started

  1. Start the dev server: npm run dev
  2. Visit http://localhost:3006 in your browser
  3. Check http://localhost:3006/api/v1/user for the API endpoint
  4. Edit files in src/ to see changes automatically

Features

  • โœ… Fastify web framework
  • โœ… TypeScript support (no build step needed)
  • โœ… Hot reload in development
  • โœ… Type checking with npm run typecheck

License

MIT

About

๐Ÿš€ Fastify & TypeScript starter repository

Topics

Resources

Stars

257 stars

Watchers

3 watching

Forks

Releases

Packages

Used by

Contributors

Languages


Back | FazBrowse Home | New Git URL