ShadcnKit is a powerful, open-source starter kit for building modern web applications with Next.js. This free version includes essential features to jumpstart your project development.
- β‘ Next.js: Built on the latest version of Next.js with App Router
- π Authentication: Integrated Logto for secure user management
- π§ Email Service: Resend integration for transactional emails
- π User Roles: Admin user role system for access control
- π Internationalization: i18n support for multi-language applications
- βοΈ Cloudflare Pages: Easy deployment and hosting
- π¨ UI Components: Customizable components powered by shadcn/ui
- π Dashboard: Admin dashboard for user management and analytics
- π± Responsive Design: Mobile-friendly interface
- π SEO Optimized: Built-in SEO best practices
- π Performance Focused: Optimized for speed and efficiency
- Node.js 16.x or later
- npm or yarn
- A Cloudflare account
- A Logto account
- A Resend account
-
Clone the repository:
git clone https://github.com/yourusername/shadcnkit.git cd shadcnkit
-
Install dependencies:
npm install
-
Set up environment variables: Copy the
.env.example
file to.env.local
and fill in your credentials:cp .env.example .env.local
-
Run the development server:
npm run dev
-
Open http://localhost:3000 in your browser to see the result.
- Create a Logto application and note down the App ID and App Secret.
- Add the Logto credentials to your
.env.local
file.
- Sign up for a Resend account and get your API key.
- Add the Resend API key to your
.env.local
file.
- Connect your GitHub repository to Cloudflare Pages.
- Set up your build configuration in Cloudflare Pages dashboard.
- Add your translations to the
messages
directory. - Use the translation functions in your components as demonstrated in the example files.
Access the admin dashboard at /dashboard
after logging in with an admin account.
User roles are managed through the admin dashboard. By default, there are two roles:
- User
- Admin
Protected API routes are available under /api/
. These routes require authentication.
For support, please open an issue in the GitHub repository or contact us at support@shadcnkit.com.
Built with β€οΈ by the ShadcnKit Team