Admin template Laravel/React

This project is an initial base for SAAS (Software as a Service) systems using Laravel and React.
About template
- code quality
- commitlint
- precommit configurations
- prepush configurations
- docker services
- github actions
- semantic versioning
- changelog
- pint
- eslint
- prettier
- unit tests (pest)
- unit tests (vitest)
- e2e tests (playwright)
- cache (redis)
- logging (sentry)
- mail
- notifications (reverb)
- auth
- users
- modules
- companies
- roles
- permissions
Installation
-
Clone the repository
git clone https://github.com/geekhadev/laravel-admin-template.git
-
Configure .env file
cp .env.example .env
-
Install PHP dependencies
composer install
-
Install JavaScript dependencies
pnpm install
-
Run migrations
php artisan migrate
-
Run seeders (optional)
php artisan db:seed
-
Run backend development server
php artisan serve
-
Run frontend development server
pnpm run dev
Note: You can change the database credentials in the .env file. And if not have the database, you can create with docker compose.
docker compose up -d
Commands
pnpm run lint
pnpm run pint
pnpm run format
pnpm run sentry:test
pnpm run vitest
pnpm run playwrite
pnpm run playwrite --ui
- Run generator interface tests
pnpm run playwright codegen
- Run unit tests or integration tests (PHP)
pnpm run pest
These commands help to keep the code clean and functional before committing to the repository.
Configurations in Google
Gmail
How to configure the Gmail for send mail:
- Go to Google Account
- Find "Create and manage application passwords"
- Create a new password for the application
- Use the password in the .env file
Configurations in AWS
S3
How to configure the S3 bucket in AWS:
In this video explain how to configure the S3 bucket in AWS.
Configurar Discord
- Ve al canal de texto en Discord donde deseas recibir las alertas.
- Haz clic en el ícono de configuración del canal.
- Ve a la sección Integraciones y selecciona Crear Webhook.
- Asigna un nombre al webhook y copia la URL generada.
- Agrega a las variables de entorno la url de tu webhook
DISCORD_WEBHOOK_URL=https://discord.com/api/webhooks/XXXXXXXXX/YYYYYYYYY
Configurar Telegram
- En la aplicación de Telegram enviar un mensaje '/newbot' a @BotFather y seguir las instrucciones para crear el bot.
- Una vez creado, copiar el token proporcionado y copiar en las variables de entorno como TELEGRAM_BOT_TOKEN={API_TOKEN_OBTENIDO}
Contributing
Thank you for considering contributing to the template! The contribution guide can be found in the Contributing document.
Code of Conduct
In order to ensure that the Laravel community is welcoming to all, please review and abide by the Code of Conduct.
Changelog
You can view the application changelog by visiting the /changelog path in your browser.
And there is a path in the project /changelog where the content is represented in the Changelog file.
License
The template is open-sourced software licensed under the MIT license.
Support
For any inquiries or support, please contact me at khalisser@gmail.com or connect with me on LinkedIn.