Liret

screenshot of Liret
react
styled-components
tailwind

Batteries included starter for Laravel apps

Overview:

LIRET is a batteries-included starter for Laravel apps that combines Laravel, Inertia, React, and TypeScript. It provides a setup that includes authentication, authorization, websockets, linting and formatting tools, and more.

Features:

  • Types: The types for the app are defined in resources/js/lib/types.tsx, including the IPageProps interface for typing shared data and the IUser interface for the User model.
  • useTitle: The useTitle hook in resources/js/lib/use-title.tsx is used to set the title from inside a React component.
  • Artisan command to create pages: The php artisan make:page <PAGE NAME> command creates a page template in resources/js/pages.
  • Authentication: LIRET supports authentication with email-password, Github, and Google out of the box. Social authentication is implemented with Socialite and it's easy to add other providers.
  • Authorization: Admin accounts are defined by setting the admin property on the User model to true. Regular users who register via the /auth/register route are not admins.
  • Seeded admin account: The database seeder creates an admin account with pre-defined credentials.
  • Frontend Authorization: The resources/js/lib/authorization.tsx file contains components such as Admin, User, Authenticated, and Guest that show or hide children based on user and authentication state.
  • Laravel Websockets: LIRET includes Laravel Websockets, which provides a dashboard at /laravel-websockets for establishing websocket connections with the server.
  • Linting and Formatting: The project comes with ESLint and Prettier setup out of the box, with configs in .eslintrc.js and .prettierrc. It also includes husky and pretty-quick for pre-commit formatting.

Summary:

LIRET is a Laravel starter that includes Inertia, React, and TypeScript. It provides a comprehensive setup for building Laravel applications, including authentication, authorization, websockets, linting and formatting tools, and more. With its pre-defined features and easy-to-use commands, LIRET offers developers a solid foundation for rapidly developing Laravel apps.

react
React

React is a widely used JavaScript library for building user interfaces and single-page applications. It follows a component-based architecture and uses a virtual DOM to efficiently update and render UI components

styled-components
Styled Components

Styled Components is a popular library for styling React components using CSS syntax. It allows you to write CSS in your JavaScript code, making it easier to create dynamic styles that are specific to each component.

tailwind
Tailwind

Tailwind CSS is a utility-first CSS framework that provides pre-defined classes for building responsive and customizable user interfaces.

eslint
Eslint

ESLint is a linter for JavaScript that analyzes code to detect and report on potential problems and errors, as well as enforce consistent code style and best practices, helping developers to write cleaner, more maintainable code.

postcss
Postcss

PostCSS is a popular open-source tool that enables web developers to transform CSS styles with JavaScript plugins. It allows for efficient processing of CSS styles, from applying vendor prefixes to improving browser compatibility, ultimately resulting in cleaner, faster, and more maintainable code.

typescript
Typescript

TypeScript is a superset of JavaScript, providing optional static typing, classes, interfaces, and other features that help developers write more maintainable and scalable code. TypeScript's static typing system can catch errors at compile-time, making it easier to build and maintain large applications.