- Quick Start
- Package Scripts
- Basic Setup
- Project Structure
- Rendering Modes
- Routing Configuration
- Data Prefetching
- Route Layouts
- Route Context
- Route Enter Event
- Virtual Modules
Fastify DX for React is a renderer adapter for fastify-vite.
It is a fast, lightweight alternative to Next.js and Remix packed with Developer Experience features.
At this stage this project is mostly a one-man show, who's devoting all his free time to its completion. Contributions are extremely welcome, as well as bug reports for any issues you may find.
In this first alpha release it's still missing a test suite. The same is true for fastify-vite.
It'll move into beta status when test suites are added to both packages.
Ensure you have Node v16+.
If you're starting a project from scratch, you'll need these packages installed.npm i fastify fastify-vite fastify-dx-react -P npm i @vitejs/plugin-react -D
npm run dev.
That will get you a starter template with:
- A minimal Fastify server.
- Some dummy API routes.
pages/folder with some demo routes.
- All configuration files.
It also includes some opinionated essentials:
npm run dev boots the development server.
npm run build creates the production bundle.
npm run serve serves the production bundle.