@thinkeloquent/skeleton
v1.0.8
Published
A lightweight Fastify skeleton application with TypeScript support for building fast and scalable web applications
Maintainers
Readme
@mta/skeleton
Fastify skeleton application with TypeScript, hot-reload for development, and production build support.
Features
- Fastify - Fast and low overhead web framework
- TypeScript - Type-safe development
- Hot Reload - Automatic restart on file changes using
tsx watch - Production Build - Compiled TypeScript for production deployment
- Structured Logging - Pretty logs via pino-pretty
Quick Start
Install Dependencies
From the workspace root:
npm installOr from this package directory:
npm installDevelopment
Run with hot-reload:
npm run devThe server will start on http://localhost:3000 and automatically restart when you make changes.
Production
Build the application:
npm run buildStart the production server:
npm startOther Scripts
npm run clean- Remove build artifactsnpm run type-check- Run TypeScript type checking without building
API Endpoints
GET /- Hello World responseGET /health- Health check endpoint
Environment Variables
Create a .env file based on .env.example:
PORT=3000
HOST=0.0.0.0
NODE_ENV=developmentProject Structure
skeleton/
├── src/
│ └── index.ts # Main application entry point
├── dist/ # Compiled JavaScript (generated)
├── package.json # Package configuration
├── tsconfig.json # TypeScript configuration
└── README.md # This file