Get started with FastAng
Requirements
0.1.0-alpha.0. Use Node ^22.22.3, ^24.15.0 or >=26.0.0, with npm. The starter uses Angular 22.2.3, Vite 8.3.4 and Fastify ^5.12.7. APIs may change between alpha releases.
Create and run
npm create fastang@alpha my-app -- --install
cd my-app
npm run devhttp://localhost:3278. Port 3278 spells FAST on a telephone keypad. The generator creates a new directory and rejects existing destinations. --install runs npm install. Without it, run npm install in the project before starting the server.
Try the project
/ | |
/greet/world | |
/api/health | ok: true. |
/about | |
/missing |
/about also renders on the server for each request. Prerendering applies to production builds.
Where to work
src/app/pages: pages, layouts and router metadata.src/server/api: Fastify endpoints with the method in the filename.src/server/plugins.ts: server plugins and hooks.fastang.config.ts: prerender URLs and Vercel options.
Check production
npm run check
npm run build
npm startnpm run check validates types and templates without starting a server.