Installation
Install and configure AxionJS for your project.
Create project
Run the init
command to create a new AxionJS project or to setup an existing one:
The CLI will guide you through the setup process with beautiful interactive prompts built with Clack:
Choose between a standard project or a Monorepo setup.
Add Components
You can now start adding components to your project.
Interactive Component Selection
You can also browse and select multiple components interactively:
Adding Individual Components
The command above will add the Button
component to your project. You can then import it like this:
Full-Stack Components
AxionJS excels at providing complete, production-ready solutions. Here’s what happens when you add a full-stack component like a contact form:
This single command sets up:
- Database Models - Prisma schema for contact messages
- Server Actions - Form submission and data handling
- Custom Hooks - Form state and message management
- UI Components - Contact form and admin interface
- Admin Pages - Message management dashboard
- Type Safety - Full TypeScript support