chore: import codes

This commit is contained in:
2026-04-12 12:50:14 -04:00
parent 4bcb4898e8
commit 65ae3c6788
241 changed files with 48834 additions and 1 deletions
+61
View File
@@ -0,0 +1,61 @@
# Installation
## 1. Install the package
```bash
npm install @hykocx/zen
```
## 2. Install the styles
Add the following line to your `globals.css` file:
```css
@import '@hykocx/zen/styles/zen.css';
```
## 3. Add ZenProvider to your root layout
Wrap your application with the `ZenProvider` in your root layout to enable toast notifications globally:
```javascript
// app/layout.js
import './globals.css';
import { ZenProvider } from '@hykocx/zen/provider';
export const metadata = {
title: 'My App',
};
export default function RootLayout({ children }) {
return (
<html lang="en">
<body>
<ZenProvider>
{children}
</ZenProvider>
</body>
</html>
);
}
```
## 4. Configure the environment variables
Check the [`.env.example`](.env.example) file for the required environment variables to add to your `.env` file.
## 5. Initialize the database
```bash
npx zen-db init
```
# Setup
## Quick Setup
You can create all required files with a single command:
```bash
npx zen-setup init
```