Get started with FastAng
Requirements
0.1.0-alpha.6. Use Node ^22.22.3, ^24.15.0 or >=26.0.0, with npm or pnpm 10/11. 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.
pnpm support
pnpm create fastang@alpha my-app --install
cd my-app
pnpm run devhttp://localhost:3278. FastAng recognizes pnpm and uses it to install dependencies and set up the project's scripts. Installation creates pnpm-lock.yaml: commit it alongside package.json to keep dependency versions consistent across computers.
--install with --no-install, then run pnpm install in the project directory.
--package-manager pnpm to select pnpm explicitly.
Project commands
pnpm run dev | |
pnpm run check | |
pnpm run build | |
pnpm start | |
pnpm run build:vercel |
Blocked installation scripts
Ignored build scripts, run:
pnpm approve-builds
pnpm installpnpm-workspace.yaml.
Standalone CLI
fastang new directly, install the lightweight CLI globally:
npm install -g @fastang/cli@alpha
fastang new another-app --installfastang new another-app --package-manager pnpm --install.
npx --package=@fastang/cli@alpha fastang-cli new another-app --install. The CLI uses the matching generator release. Development and build use the core installed in the app. See upgrading for existing projects.
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.
Use FastAng with an AI assistant
npm run check and npm run build, or the equivalent pnpm commands, and your application's tests.
Check production
npm run check
npm run build
npm startnpm run check validates routes, types and templates without starting a server.