Laravel Inertia Template
-
Laravel 9.x
-
Inertia (server-side: 0.5.4 & client-side: 0.11.0)
-
React 17.x
-
Vite 2.x
-
Ziggy (Laravel named routes on frontend)
-
TailwindCSS 3.x (plugins included: nesting, auto-imports, autoprefixer)
-
lodash 4.x
-
clsx 1.x
git clone
composer install
cp .en.example .env
php artisan key:generate
npm install or yarn
npm run dev
Use jsDocs for documentation
/**
* @param {object} params
* @description Used to handle the request
* @returns {object}
*/
function (params) {
// API request
return {};
}
Read about Programming Case Types
- For folders use camel-case.
- For React components (.jsx) use PascalCase.
- For JavaScript files use camelCase.
Styling & tailwindcss
css -> {ui_library_name}Defaults : Use this file to override UI component library styling. e.g: for antd the file name is antdDefaults.scss.
For common-components and pages make sure to add the styling file in the same folder as the component.