Start typing to search...
No results for ""
Understanding how KiviCare is organized will help you navigate the codebase efficiently and know exactly where to make changes.
app/dashboard/)👉 This is the main development area for frontend features.
Location: app/dashboard/main.jsx
When to edit: Rarely — only for global configuration changes.
vite.config.js — Build ConfigurationConfigures the Vite build tool.
export default {
plugins: [react(), v4wp()],
server: { port: 8080 },
resolve: { alias: {...} }
}
Location: Root directory
When to edit: When adjusting build settings, aliases, or plugins.
package.json — Node DependenciesDefines JavaScript dependencies and scripts.
{
"scripts": {
"dev": "vite",
"build": "vite build"
},
"dependencies": {
"react": "^19.2.0"
}
}
Location: Root directory
When to edit: When adding or updating npm packages.
composer.json — PHP DependenciesDefines PHP dependencies and autoloading.
{
"autoload": {
"psr-4": {
"App\\": "./app"
}
}
}
Location: Root directory
When to edit: When adding PHP libraries.
Create in:app/dashboard/components/custom/MyComponent.jsx
import React from 'react';
export const MyComponent = () => {
return <div>My Custom Component</div>;
};
Create in:app/dashboard/views/custom/MyPage.jsx
Register the route in:app/dashboard/router/indexRouter.js
Create in:app/dashboard/api/myService.js
import { useQuery } from '@tanstack/react-query';
export const useMyData = () => {
return useQuery({...});
};
Edit:app/dashboard/assets/scss/custom.scss
.my-custom-class {
background: #7016d0;
padding: 1rem;
}
Create in:app/controllers/api/MyController.php
<?php
namespace App\controllers\api;
class MyController extends WP_REST_Controller {
// Your controller logic
}
dist/)These files are generated automatically — do not edit them.
Generated when:
npm run dev (development)npm run build (production)app/)Work here when building backend logic, database features, or REST API endpoints.
| Purpose | Path |
|---|---|
| Entry Point | app/dashboard/main.jsx |
| Routes | app/dashboard/router/indexRouter.js |
| Pages | app/dashboard/views/{module}/ |
| Components | app/dashboard/components/ |
| API Services | app/dashboard/api/ |
| Custom Styles | app/dashboard/assets/scss/custom.scss |
| Build Config | vite.config.js |
| Build Output | dist/ |
Use aliases instead of long relative paths.
// ❌ Avoid
import { Button } from '../../../components/atoms/Button';
// ✅ Recommended
import { Button } from '@components/atoms/Button';
Available aliases (defined in vite.config.js):
@app → app/dashboard@api → app/dashboard/api@components → app/dashboard/components@shortcodes → app/shortcodes@elementor → app/elementor/widgetsReady to customize?
→ Continue to First Customization
| Task | Location |
|---|---|
| Add new page | app/dashboard/views/custom/MyPage.jsx |
| Add component | app/dashboard/components/custom/MyComponent.jsx |
| Add API service | app/dashboard/api/myService.js |
| Custom styles | app/dashboard/assets/scss/custom.scss |
| Add PHP endpoint | Add a PHP endpoint |
Start typing to search...
No results for ""