Skip to content
Public template

About

No description, website, or topics provided.

Resources

Stars

6 stars

Watchers

0 watching

Forks

Latest commit

 

History

2 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Fastify + TypeScript Template

Minimal Fastify template using TypeScript and sensible defaults for small services.

Get started

  1. Scaffold the template with degit:
npx degit SidiqovAbbos/fastify-template my-api
cd my-api
  1. Install dependencies (use your package manager of choice):
pnpm install    # pnpm
yarn install    # yarn
npm install     # npm
  1. Run in development (hot-reload):
pnpm run dev
# or
yarn dev
# or
npm run dev
  1. Build and run:
pnpm run build
pnpm start

Notes

  • Use whichever package manager you prefer and commit its lockfile (pnpm-lock.yaml, package-lock.json, or yarn.lock).
  • Store environment variables in a .env file and do not commit secrets.

Project layout

  • src/ — application source (app.ts, server.ts, routes and plugins)

About

No description, website, or topics provided.

Resources

Stars

6 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages